Merge "Delay display DOZE on LS => AOD"

This commit is contained in:
TreeHugger Robot
2022-02-14 15:26:01 +00:00
committed by Android (Google) Code Review

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;
}
/**