summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/keyguard
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2014-09-04 16:51:20 -0700
committerJim Miller <jaggies@google.com>2014-09-04 17:11:17 -0700
commit705004bebf919b2d851fa86a31f17fc21b0dca34 (patch)
treebb42d99230a2d32fb29660775aa985e4360253b5 /packages/SystemUI/src/com/android/systemui/keyguard
parentf4df7656b950ad61124d5f8d856640797bf1995d (diff)
downloadframeworks_base-705004bebf919b2d851fa86a31f17fc21b0dca34.zip
frameworks_base-705004bebf919b2d851fa86a31f17fc21b0dca34.tar.gz
frameworks_base-705004bebf919b2d851fa86a31f17fc21b0dca34.tar.bz2
Send USER_PRESENT broadcast after keyguard animation finishes
This fixes a potential race between receiving USER_PRESENT broadcast and testing if keyguard is finished (KeyguardManager.isKeyguardLocked()) This also fixes an issue where USER_PRESENT isn't sent when device encryption is enabled. Fixes bug 17322844 Fixes bug 17301385 Change-Id: Icab3068c24032942ffdf6554d6d53cc656ae6666
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/keyguard')
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
index f8d0d9e..8d35eb0 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
@@ -1142,7 +1142,6 @@ public class KeyguardViewMediator extends SystemUI {
}
handleHide();
- sendUserPresentBroadcast();
}
private void sendUserPresentBroadcast() {
@@ -1313,6 +1312,7 @@ public class KeyguardViewMediator extends SystemUI {
mHideAnimationRun = false;
updateActivityLockScreenState();
adjustStatusBarLocked();
+ sendUserPresentBroadcast();
}
}