Reseting scrollposition to 0 when going to keyguard

This avoids some jank when going to the keyguard from
the locked shade.

Change-Id: I21dcd8a7cbb2aa98659061d29670b2663f1e7fc9
This commit is contained in:
Selim Cinek
2015-06-09 20:17:30 -07:00
parent 560e64d3d9
commit b24e0a90fd
2 changed files with 6 additions and 0 deletions

View File

@@ -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() {

View File

@@ -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;