diff options
| author | Dan Sandler <dsandler@android.com> | 2014-05-08 19:55:24 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-08 19:55:25 +0000 |
| commit | 12319badd62471aee422c3383d30656a528ea2b1 (patch) | |
| tree | 8799177c12a55555e98ffe97f7b03a31adfbf580 | |
| parent | 86e80290792b3a259dc6db7958a2f7ace7f9c6e4 (diff) | |
| parent | 3806c771336a378b650b2ec14aa1ae7e5927f137 (diff) | |
| download | frameworks_base-12319badd62471aee422c3383d30656a528ea2b1.zip frameworks_base-12319badd62471aee422c3383d30656a528ea2b1.tar.gz frameworks_base-12319badd62471aee422c3383d30656a528ea2b1.tar.bz2 | |
Merge "Don't show notifications above FLAG_SHOW_WHEN_LOCKED windows."
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java index e24ddd9..f24c1b6 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java @@ -95,7 +95,9 @@ public class StatusBarKeyguardViewManager { } private void showBouncer() { - mBouncer.show(); + if (!mOccluded) { + mBouncer.show(); + } updateStates(); } @@ -103,7 +105,12 @@ public class StatusBarKeyguardViewManager { * Reset the state of the view. */ public void reset() { - showBouncerOrKeyguard(); + if (mOccluded) { + mPhoneStatusBar.hideKeyguard(); + mBouncer.hide(); + } else { + showBouncerOrKeyguard(); + } updateStates(); } @@ -114,6 +121,7 @@ public class StatusBarKeyguardViewManager { public void onScreenTurnedOn(final IKeyguardShowCallback callback) { mScreenOn = true; + reset(); if (callback != null) { callbackAfterDraw(callback); } @@ -147,7 +155,7 @@ public class StatusBarKeyguardViewManager { public void setOccluded(boolean occluded) { mOccluded = occluded; mStatusBarWindowManager.setKeyguardOccluded(occluded); - updateStates(); + reset(); } /** |
