diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-05-09 16:05:53 +0200 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2014-05-09 16:05:53 +0200 |
commit | 43bdbbdad6c54c732b2caa09d7544cfdd677ac5b (patch) | |
tree | 370abf77cdcec12d614de5118d049e3e0b9870e6 /packages/SystemUI/src | |
parent | 2ac997917924161ed2eed5f4387246beb58c456e (diff) | |
download | frameworks_base-43bdbbdad6c54c732b2caa09d7544cfdd677ac5b.zip frameworks_base-43bdbbdad6c54c732b2caa09d7544cfdd677ac5b.tar.gz frameworks_base-43bdbbdad6c54c732b2caa09d7544cfdd677ac5b.tar.bz2 |
Fix lockscreen occluded states #2.
Bug: 14656767
Bug: 14294001
Change-Id: Ibc428cbba8b48b6adc26756d8276a63183b8a690
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java | 18 |
1 files changed, 9 insertions, 9 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 f24c1b6..48c54fc 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java @@ -73,8 +73,7 @@ public class StatusBarKeyguardViewManager { public void show(Bundle options) { mShowing = true; mStatusBarWindowManager.setKeyguardShowing(true); - showBouncerOrKeyguard(); - updateStates(); + reset(); } /** @@ -105,13 +104,15 @@ public class StatusBarKeyguardViewManager { * Reset the state of the view. */ public void reset() { - if (mOccluded) { - mPhoneStatusBar.hideKeyguard(); - mBouncer.hide(); - } else { - showBouncerOrKeyguard(); + if (mShowing) { + if (mOccluded) { + mPhoneStatusBar.hideKeyguard(); + mBouncer.hide(); + } else { + showBouncerOrKeyguard(); + } + updateStates(); } - updateStates(); } public void onScreenTurnedOff() { @@ -121,7 +122,6 @@ public class StatusBarKeyguardViewManager { public void onScreenTurnedOn(final IKeyguardShowCallback callback) { mScreenOn = true; - reset(); if (callback != null) { callbackAfterDraw(callback); } |