Skip to content

Commit 1e88e98

Browse files
author
Dianne Hackborn
committed
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
1 parent ec04678 commit 1e88e98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/java/com/android/server/am/ActivityManagerService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4116,6 +4116,10 @@ public void showBootMessage(final CharSequence msg, final boolean always) {
41164116
public void dismissKeyguardOnNextActivity() {
41174117
enforceNotIsolatedCaller("dismissKeyguardOnNextActivity");
41184118
synchronized (this) {
4119+
if (mLockScreenShown) {
4120+
mLockScreenShown = false;
4121+
comeOutOfSleepIfNeededLocked();
4122+
}
41194123
mMainStack.dismissKeyguardOnNextActivityLocked();
41204124
}
41214125
}

0 commit comments

Comments
 (0)