Merge "Reseting scrollposition to 0 when going to keyguard" into mnc-dev

This commit is contained in:
Selim Cinek
2015-06-10 23:30:09 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 0 deletions

View File

@@ -487,6 +487,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;