Merge "Fix KeyguardTests#testScreenOffCausesSingleStopAod" into sc-dev

This commit is contained in:
Josh Tsuji
2021-08-06 17:55:27 +00:00
committed by Android (Google) Code Review

View File

@@ -2759,7 +2759,10 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable,
// Don't hide the keyguard due to a doze change if there's a lock pending, because we're // Don't hide the keyguard due to a doze change if there's a lock pending, because we're
// just going to show it again. // just going to show it again.
if (mShowing || !mPendingLock) { // If the device is not capable of controlling the screen off animation, SysUI needs to
// update lock screen state in ATMS here, otherwise ATMS tries to resume activities when
// enabling doze state.
if (mShowing || !mPendingLock || !mDozeParameters.canControlUnlockedScreenOff()) {
setShowingLocked(mShowing); setShowingLocked(mShowing);
} }
} }