diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-11-12 15:51:46 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-12 15:51:46 +0000 |
commit | d04f864cae1ae553398774692effb663b73f902c (patch) | |
tree | b426594c8791855b48e87edab9e7ac50fcb86a1c /packages | |
parent | 57837b9fc6ce81d476393684172d1e3ce8271cf0 (diff) | |
parent | b9eedce21a460ad26175391e6c9c9e3ca369bafb (diff) | |
download | frameworks_base-d04f864cae1ae553398774692effb663b73f902c.zip frameworks_base-d04f864cae1ae553398774692effb663b73f902c.tar.gz frameworks_base-d04f864cae1ae553398774692effb663b73f902c.tar.bz2 |
am b9eedce2: Merge "Fix lockscreen launch animations once and for all" into lmp-mr1-dev
* commit 'b9eedce21a460ad26175391e6c9c9e3ca369bafb':
Fix lockscreen launch animations once and for all
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index 172aaf6..7ca8fc1 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -426,7 +426,9 @@ public class KeyguardViewMediator extends SystemUI { } public void keyguardDone(boolean authenticated) { - KeyguardViewMediator.this.keyguardDone(authenticated, true); + if (!mKeyguardDonePending) { + KeyguardViewMediator.this.keyguardDone(authenticated, true); + } } public void keyguardDoneDrawing() { @@ -1049,9 +1051,6 @@ public class KeyguardViewMediator extends SystemUI { public void keyguardDone(boolean authenticated, boolean wakeup) { if (DEBUG) Log.d(TAG, "keyguardDone(" + authenticated + ")"); EventLog.writeEvent(70000, 2); - synchronized (this) { - mKeyguardDonePending = false; - } Message msg = mHandler.obtainMessage(KEYGUARD_DONE, authenticated ? 1 : 0, wakeup ? 1 : 0); mHandler.sendMessage(msg); } @@ -1122,6 +1121,9 @@ public class KeyguardViewMediator extends SystemUI { */ private void handleKeyguardDone(boolean authenticated, boolean wakeup) { if (DEBUG) Log.d(TAG, "handleKeyguardDone"); + synchronized (this) { + mKeyguardDonePending = false; + } if (authenticated) { mUpdateMonitor.clearFailedUnlockAttempts(); @@ -1297,6 +1299,7 @@ public class KeyguardViewMediator extends SystemUI { } private void handleOnActivityDrawn() { + if (DEBUG) Log.d(TAG, "handleOnActivityDrawn: mKeyguardDonePending=" + mKeyguardDonePending); if (mKeyguardDonePending) { mStatusBarKeyguardViewManager.onActivityDrawn(); } |