am 059271ec: Merge "Reseting scrollposition to 0 when going to keyguard" into mnc-dev
* commit '059271ec2945e146b88dfb1e5c4a1e564d757ddf': Reseting scrollposition to 0 when going to keyguard
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user