diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index a274de6dcf98..9326946a547d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -1622,9 +1622,9 @@ boolean panelsEnabled() { return (mDisabled & StatusBarManager.DISABLE_EXPAND) == 0; } - void makeExpandedVisible() { + void makeExpandedVisible(boolean force) { if (SPEW) Log.d(TAG, "Make expanded visible: expanded visible=" + mExpandedVisible); - if (mExpandedVisible || !panelsEnabled()) { + if (!force && (mExpandedVisible || !panelsEnabled())) { return; } @@ -3003,8 +3003,9 @@ private void showBouncer() { private void instantExpandNotificationsPanel() { - // Make our window larger. - mStatusBarWindowManager.setStatusBarExpanded(true); + // Make our window larger and the panel visible. + makeExpandedVisible(true); + mNotificationPanel.setVisibility(View.VISIBLE); // Wait for window manager to pickup the change, so we know the maximum height of the panel // then. diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java index bf7dd5c67c1f..79c63f735bbc 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java @@ -106,7 +106,7 @@ public PanelView selectPanelForTouch(MotionEvent touch) { @Override public void onPanelPeeked() { super.onPanelPeeked(); - mBar.makeExpandedVisible(); + mBar.makeExpandedVisible(false); } @Override