Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 228d742f authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

Fix AOD flicker during lockscreen transition

When config_displayBlanksAfterDoze=true, disable performance
optimization for LOCKSCREEN_TRANSITION_FROM_AOD; otherwise the clock
will flicker.

Bug: 301913237
Test: Enable AOD, turn screen off and on, clock should not flicker
Change-Id: I989455111cbde31991364118c29372038c5b15b0
parent 732bb20f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2900,7 +2900,10 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {

                updateVisibleToUser();
                updateIsKeyguard();
                // TODO(b/301913237): can't delay transition if config_displayBlanksAfterDoze=true,
                // otherwise, the clock will flicker during LOCKSCREEN_TRANSITION_FROM_AOD
                mShouldDelayLockscreenTransitionFromAod = mDozeParameters.getAlwaysOn()
                        && !mDozeParameters.getDisplayNeedsBlanking()
                        && mFeatureFlags.isEnabled(
                                Flags.ZJ_285570694_LOCKSCREEN_TRANSITION_FROM_AOD);
                if (!mShouldDelayLockscreenTransitionFromAod) {