Skip to content

Commit d979dd7

Browse files
author
Amith Yamasani
committed
Go back to keyguard if user is switched in lock screen
This is not the preferred solution, but at least it is not incorrect. Bug: 7144478 Change-Id: Iec26723b21ff5c64546d57f9d8744a3bf2929862
1 parent 9f750af commit d979dd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ public void setNeedsInput(boolean needsInput) {
214214
*/
215215
public synchronized void reset() {
216216
if (DEBUG) Log.d(TAG, "reset()");
217-
if (mKeyguardView != null) {
218-
mKeyguardView.reset();
219-
}
217+
// User might have switched, check if we need to go back to keyguard
218+
// TODO: It's preferable to stay and show the correct lockscreen or unlock if none
219+
maybeCreateKeyguardLocked(shouldEnableScreenRotation());
220220
}
221221

222222
public synchronized void onScreenTurnedOff() {

0 commit comments

Comments
 (0)