summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dianne Hackborn <hackbod@google.com> 2012-04-24 18:35:55 -0700
committer Dianne Hackborn <hackbod@google.com> 2012-04-24 18:35:55 -0700
commit1e88e98d7d3bfe323bfbc551404d734cb69b2743 (patch)
treefa6087ece90e29386f75b1571d0a9cce30e37a0b
parentec046784e157dce998453a008a3b67a0e438473b (diff)
Fix issue #6373340: Cannot unlock to app if app was the...
...foreground app when the device was put to sleep This is because of activities being kept in the stopped state while the lock screen is shown, so we never get to the point of it becoming visible again to know to proceed. Just at this point consider the lock screen hidden so the activity can be resumed and run as normal; the whole point of this is to soon hide the lock screen, anyway. Change-Id: I3a713a2f87b8e4412ff66724c051f09a2675be00
-rw-r--r--services/java/com/android/server/am/ActivityManagerService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java
index 8f69d2ff0698..529537c1bd82 100644
--- a/services/java/com/android/server/am/ActivityManagerService.java
+++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -4116,6 +4116,10 @@ public final class ActivityManagerService extends ActivityManagerNative
public void dismissKeyguardOnNextActivity() {
enforceNotIsolatedCaller("dismissKeyguardOnNextActivity");
synchronized (this) {
+ if (mLockScreenShown) {
+ mLockScreenShown = false;
+ comeOutOfSleepIfNeededLocked();
+ }
mMainStack.dismissKeyguardOnNextActivityLocked();
}
}