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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16469210

Change-Id: I1e1ab0db3d151b655f79c075834dcebc5890773a
This commit is contained in:
TreeHugger Robot
2021-12-15 19:12:22 +00:00
committed by Automerger Merge Worker

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