diff options
| author | 2014-04-28 19:08:40 +0000 | |
|---|---|---|
| committer | 2014-04-28 19:08:41 +0000 | |
| commit | 10c84f010982560e13bec4af49558a3bc8be32d1 (patch) | |
| tree | 9da51eb626dc87749f64c68559fd764bbc7e10c3 | |
| parent | d3406d7a1afd2b1ff3aea216fb74e402f1795888 (diff) | |
| parent | fa505a7f26bdf685c701e92b481602eb59d7ff56 (diff) | |
Merge "Attemp to fix blank lockscreen #2."
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 9 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java | 2 |
2 files changed, 6 insertions, 5 deletions
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 ff616bea2c63..545352c2a40e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -1625,9 +1625,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode { 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; } @@ -3009,8 +3009,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode { 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 class PhoneStatusBarView extends PanelBar { @Override public void onPanelPeeked() { super.onPanelPeeked(); - mBar.makeExpandedVisible(); + mBar.makeExpandedVisible(false); } @Override |