OSDN Git Service

Set the right expanded state
authorAdrian Roos <roosa@google.com>
Fri, 17 Oct 2014 18:14:23 +0000 (20:14 +0200)
committerAdrian Roos <roosa@google.com>
Fri, 17 Oct 2014 18:14:23 +0000 (20:14 +0200)
Fixes an issue where the QS panel thought it was expanded
because it used the status bar header expansion state.

Bug: 17364798
Change-Id: I2db574f63f584d5533e2515d1d32f1fbd08bdc66

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

index a6fccb6..c19bdff 100644 (file)
@@ -802,6 +802,7 @@ public class NotificationPanelView extends PanelView implements
             requestPanelHeightUpdate();
             mNotificationStackScroller.setInterceptDelegateEnabled(expanded);
             mStatusBar.setQsExpanded(expanded);
+            mQsPanel.setExpanded(expanded);
         }
     }
 
index ca853a9..247252c 100644 (file)
@@ -302,9 +302,6 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL
         updateSystemIconsLayoutParams();
         updateClickTargets();
         updateMultiUserSwitch();
-        if (mQSPanel != null) {
-            mQSPanel.setExpanded(mExpanded);
-        }
         updateClockScale();
         updateAvatarScale();
         updateClockLp();