Skip to content

Commit 9c673b0

Browse files
Amith YamasaniAndroid (Google) Code Review
authored andcommitted
Merge "Go back to keyguard if user is switched in lock screen" into jb-mr1-dev
2 parents 0bb4d07 + d979dd7 commit 9c673b0

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)