summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2015-06-09 20:17:30 -0700
committerSelim Cinek <cinek@google.com>2015-06-10 15:31:46 -0700
commitb24e0a90fde332b102c9787f590a94900467340c (patch)
tree1545ec76aa30f31e0e0937083277b25ca583a786 /packages
parent560e64d3d95a17123048bebe2fb06ffe4567fb78 (diff)
downloadframeworks_base-b24e0a90fde332b102c9787f590a94900467340c.zip
frameworks_base-b24e0a90fde332b102c9787f590a94900467340c.tar.gz
frameworks_base-b24e0a90fde332b102c9787f590a94900467340c.tar.bz2
Reseting scrollposition to 0 when going to keyguard
This avoids some jank when going to the keyguard from the locked shade. Change-Id: I21dcd8a7cbb2aa98659061d29670b2663f1e7fc9
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java1
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java5
2 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
index 39dc480..fe1e85d 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -482,6 +482,7 @@ public class NotificationPanelView extends PanelView implements
mStatusBar.dismissPopups();
mNotificationStackScroller.setOverScrollAmount(0f, true /* onTop */, false /* animate */,
true /* cancelAnimators */);
+ mNotificationStackScroller.resetScrollPosition();
}
public void closeQs() {
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
index 6e0c85c..f11a878 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
@@ -2230,6 +2230,11 @@ public class NotificationStackScrollLayout extends ViewGroup
}
}
+ public void resetScrollPosition() {
+ mScroller.abortAnimation();
+ mOwnScrollY = 0;
+ }
+
private void setIsExpanded(boolean isExpanded) {
boolean changed = isExpanded != mIsExpanded;
mIsExpanded = isExpanded;