Fix AOD2 notifications not waking up the device if the screen off animation played.

KeyguardViewMediator's isAnimatingScreenOff isn't always reset when going to sleep - it's sometimes only reset to false onStartedWakingUp. I'll fix that in a subsequent CL, but just in case that's a load-bearing bug, we'll do this first.

Fixes: 191231505
Test: tap notif on AOD2 after screen off plays
Change-Id: Ic13fbbaec9151ff577fc9914df1cbb9c42245ded
This commit is contained in:
Josh Tsuji
2021-06-21 15:01:45 -04:00
parent bdd8ff3fdd
commit 107702b267

View File

@@ -1473,9 +1473,7 @@ public class StatusBar extends SystemUI implements DemoMode,
* @param why the reason for the wake up
*/
public void wakeUpIfDozing(long time, View where, String why) {
if (mDozing && !(mKeyguardViewMediator.isAnimatingScreenOff()
|| mUnlockedScreenOffAnimationController
.isScreenOffLightRevealAnimationPlaying())) {
if (mDozing && !mUnlockedScreenOffAnimationController.isScreenOffAnimationPlaying()) {
mPowerManager.wakeUp(
time, PowerManager.WAKE_REASON_GESTURE, "com.android.systemui:" + why);
mWakeUpComingFromTouch = true;