From 547fa16b05c338bd669203f7cb17e8388981a952 Mon Sep 17 00:00:00 2001 From: Ivar Henckel Date: Wed, 31 Aug 2022 17:30:01 +0200 Subject: [PATCH] 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 --- .../com/android/systemui/statusbar/phone/DozeParameters.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java index c248a5091765e..b88531e59568f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java @@ -352,7 +352,7 @@ public class DozeParameters implements } private boolean willAnimateFromLockScreenToAod() { - return getAlwaysOn() && mKeyguardVisible; + return shouldControlScreenOff() && mKeyguardVisible; } private boolean getBoolean(String propName, int resId) {