From 237a70153baeb1976189ef6d7db268b625aa3088 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Wed, 10 Sep 2014 18:12:18 +0200 Subject: [PATCH] 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 --- .../android/systemui/statusbar/phone/NotificationPanelView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0499b148c1ad9..3fdbb6b20b941 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -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(); }