Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de458dba authored by Alex Chau's avatar Alex Chau Committed by android-build-merger
Browse files

Merge "Dismiss keyguard when switching user if lockscreen is disabled on new user" into pi-dev

am: 87646514

Change-Id: I083f1e5c59090340be8afbd4c5178db16ef12772
parents 73ffa4e8 87646514
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -357,7 +357,12 @@ public class KeyguardViewMediator extends SystemUI {
            // ActivityManagerService) will not reconstruct the keyguard if it is already showing.
            synchronized (KeyguardViewMediator.this) {
                resetKeyguardDonePendingLocked();
                if (mLockPatternUtils.isLockScreenDisabled(userId)) {
                    // If we switching to a user that has keyguard disabled, dismiss keyguard.
                    dismiss(null /* callback */, null /* message */);
                } else {
                    resetStateLocked();
                }
                adjustStatusBarLocked();
            }
        }