Delay display DOZE on LS => AOD

ScreenOffAnimationController only handles the
states from UNLOCKED => AOD, so we weren't delaying
the display state change to DOZE when we were animating
from LS => AOD.

Test: manual
Fixes: 219030172
Change-Id: Ia0aff7c634a01855db02d01a194db7850554b77b
This commit is contained in:
Beverly
2022-02-11 16:43:31 +00:00
committed by Beverly Tai
parent 6ca24eea7c
commit 6ec8855b0a

View File

@@ -309,7 +309,12 @@ public class DozeParameters implements
* delayed for a few seconds. This might be useful to play animations without reducing FPS.
*/
public boolean shouldDelayDisplayDozeTransition() {
return mScreenOffAnimationController.shouldDelayDisplayDozeTransition();
return willAnimateFromLockScreenToAod()
|| mScreenOffAnimationController.shouldDelayDisplayDozeTransition();
}
private boolean willAnimateFromLockScreenToAod() {
return getAlwaysOn() && mKeyguardShowing;
}
/**