OSDN Git Service

QS: Fix single expanded frame from layout
authorJason Monk <jmonk@google.com>
Wed, 1 Jun 2016 15:19:26 +0000 (11:19 -0400)
committerJason Monk <jmonk@google.com>
Wed, 1 Jun 2016 15:19:26 +0000 (11:19 -0400)
During animation it was resetting the QS expansion on layout which
made a frame of fully expanded appear.

Bug: 28008271
Change-Id: I6ac44cb918bdf53da0653332eabf0f4e96779cff

packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java

index 522f250..5064d8e 100644 (file)
@@ -1735,7 +1735,7 @@ public class NotificationPanelView extends PanelView implements
 
     public void onQsHeightChanged() {
         mQsMaxExpansionHeight = mQsContainer.getDesiredHeight();
-        if (mQsExpanded) {
+        if (mQsExpanded && mQsFullyExpanded) {
             mQsExpansionHeight = mQsMaxExpansionHeight;
             requestScrollerTopPaddingUpdate(false /* animate */);
             requestPanelHeightUpdate();