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

Commit 547fa16b authored by Ivar Henckel's avatar Ivar Henckel Committed by Josh Tsuji
Browse files

Delay display DOZE on LS => AOD only if blanking is not needed

There is a brightness flickering when entering Always On Display (AOD)
from lock screen. The reason for this is that config_displayBlanksAfterDoze
is not read correctly when entering AOD from lock screen.

Checking shouldControlScreenOff() to know if blanking is needed.

Test: set config_displayBlanksAfterDoze and let device go to AOD from lock screen.
Bug: 245919479
Change-Id: I90c68d25d468f22d2c1a8c2c0c2ef5723f0bc7a6
parent 121599e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -352,7 +352,7 @@ public class DozeParameters implements
    }

    private boolean willAnimateFromLockScreenToAod() {
        return getAlwaysOn() && mKeyguardVisible;
        return shouldControlScreenOff() && mKeyguardVisible;
    }

    private boolean getBoolean(String propName, int resId) {