From 0c090460fc95068ef9ada7224f0d4222d2400951 Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Thu, 17 Jun 2021 13:07:11 +0200 Subject: [PATCH] WakefulenessLifecycle: start out as AWAKE for NFFs WakefulessLifecycle is driven by KeyguardService, which doesn't always exist. When it doesn't exist, mWakefulness will remain set to WAKEFULNESS_ASLEEP, which prevents some UI bits from showing up. The most important one to fix is VolumeDialogControllerImpl. We also need to set the default value of mDeviceInteractive to true since the callback will never come on a device without a keyguard service. Test: atest SystemUITests Fix: 190357428 Change-Id: Ib4f67e756c9549d919ec8ae640abca044d7d651f --- .../src/com/android/systemui/keyguard/WakefulnessLifecycle.java | 2 +- .../com/android/systemui/volume/VolumeDialogControllerImpl.java | 2 +- .../com/android/systemui/keyguard/WakefulnessLifecycleTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/WakefulnessLifecycle.java b/packages/SystemUI/src/com/android/systemui/keyguard/WakefulnessLifecycle.java index 2e03d9a90f49f..6f878d19aa4bf 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/WakefulnessLifecycle.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/WakefulnessLifecycle.java @@ -67,7 +67,7 @@ public class WakefulnessLifecycle extends Lifecycle