summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-10-03 14:24:55 -0700
committerJorim Jaggi <jjaggi@google.com>2014-10-03 14:24:55 -0700
commit449981be16ed0ecae1fe708c31ee25a93ec2ffae (patch)
treee610160f672e6ccfeae4e547eaf78e5e589fea51
parent1e2e4307ff381e5cb9d8d19eb6a1aca763ba9415 (diff)
downloadframeworks_base-449981be16ed0ecae1fe708c31ee25a93ec2ffae.zip
frameworks_base-449981be16ed0ecae1fe708c31ee25a93ec2ffae.tar.gz
frameworks_base-449981be16ed0ecae1fe708c31ee25a93ec2ffae.tar.bz2
Fix blank lockscreen #3
Bug: 17439581 Change-Id: Ic8cb7f32200b541ecc8fa36ad2517975cec0b545
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java6
1 files changed, 4 insertions, 2 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 d0f73b1..05d6001 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -2372,7 +2372,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
}
public void animateCollapseQuickSettings() {
- mStatusBarView.collapseAllPanels(true);
+ if (mState == StatusBarState.SHADE) {
+ mStatusBarView.collapseAllPanels(true);
+ }
}
void makeExpandedInvisible() {
@@ -2474,7 +2476,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
&& mStatusBarWindowState != state) {
mStatusBarWindowState = state;
if (DEBUG_WINDOW_STATE) Log.d(TAG, "Status bar " + windowStateToString(state));
- if (!showing) {
+ if (!showing && mState == StatusBarState.SHADE) {
mStatusBarView.collapseAllPanels(false);
}
}