Fixed a bug where the notifications and the clock could jump
When the QS panel was expanded, the Notifications and the clock were not positioned, leading to a jump on the next layout when any notification came in or was swiped out. Bug: 17315258 Change-Id: I19276054e8c0a364a452d2041c1c4af858ba32b7
This commit is contained in:
@@ -270,6 +270,7 @@ public class NotificationPanelView extends PanelView implements
|
||||
// Calculate quick setting heights.
|
||||
mQsMinExpansionHeight = mKeyguardShowing ? 0 : mHeader.getCollapsedHeight() + mQsPeekHeight;
|
||||
mQsMaxExpansionHeight = mHeader.getExpandedHeight() + mQsContainer.getHeight();
|
||||
positionClockAndNotifications();
|
||||
if (mQsExpanded) {
|
||||
if (mQsFullyExpanded) {
|
||||
mQsExpansionHeight = mQsMaxExpansionHeight;
|
||||
@@ -277,7 +278,6 @@ public class NotificationPanelView extends PanelView implements
|
||||
}
|
||||
} else {
|
||||
setQsExpansion(mQsMinExpansionHeight + mLastOverscroll);
|
||||
positionClockAndNotifications();
|
||||
mNotificationStackScroller.setStackHeight(getExpandedHeight());
|
||||
updateHeader();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user