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

Commit 56a5f521 authored by Josh Tsuji's avatar Josh Tsuji
Browse files

Disable unlocked screen off if the display needs blanking.

If the display needs blanking we can't even control the normal screen off, let alone the unlocked screen off (per the DozeParameters constructor).

Bug: 193479273
Test: atest android.server.wm.KeyguardTests
Change-Id: Idaa827fee826497d00ad908b10ad2142b922b780
parent 2f13cca5
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -231,7 +231,9 @@ public class DozeParameters implements TunerService.Tunable,
     * possible if AOD isn't even enabled or if the flag is disabled.
     * possible if AOD isn't even enabled or if the flag is disabled.
     */
     */
    public boolean canControlUnlockedScreenOff() {
    public boolean canControlUnlockedScreenOff() {
        return getAlwaysOn() && mFeatureFlags.useNewLockscreenAnimations();
        return getAlwaysOn()
                && mFeatureFlags.useNewLockscreenAnimations()
                && !getDisplayNeedsBlanking();
    }
    }


    private boolean getBoolean(String propName, int resId) {
    private boolean getBoolean(String propName, int resId) {