Merge "Don't reset the keyguard if it's going away." into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2021-12-15 18:55:48 +00:00
committed by Android (Google) Code Review

View File

@@ -1025,7 +1025,10 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable,
if (!mExternallyEnabled) {
hideLocked();
}
} else if (mShowing) {
} else if (mShowing && !mKeyguardStateController.isKeyguardGoingAway()) {
// If we are going to sleep but the keyguard is showing (and will continue to be
// showing, not in the process of going away) then reset its state. Otherwise, let
// this fall through and explicitly re-lock the keyguard.
mPendingReset = true;
} else if (
(offReason == WindowManagerPolicyConstants.OFF_BECAUSE_OF_TIMEOUT