summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-02 03:19:02 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-02 03:19:02 +0000
commitacda85f65bc3f3e4d64277bb6e5cd24fe079bb87 (patch)
tree3a484ec7acba6e4dae1a2bde7da91d7af97126a4
parent16d8ab1788def3793a28a0c1b23b2a3dc7e105ef (diff)
parent1613632a763d2a34837cda4bc137605ce7f03d2b (diff)
downloadbase-acda85f65bc3f3e4d64277bb6e5cd24fe079bb87.tar.gz
Merge cherrypicks of [17043352] into sc-d2-release.
Change-Id: I87f4ad0a97f4adda889009307ae1ac0d4fb20b09
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
index 33212182cfcf..17937ca3a9f0 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
@@ -2937,8 +2937,9 @@ public class StatusBar extends SystemUI implements
// turned off fully.
boolean keyguardForDozing = mDozeServiceHost.getDozingRequested()
&& (!mDeviceInteractive || isGoingToSleep() && (isScreenFullyOff() || mIsKeyguard));
+ boolean isWakingAndOccluded = isOccluded() && isWaking();
boolean shouldBeKeyguard = (mStatusBarStateController.isKeyguardRequested()
- || keyguardForDozing) && !wakeAndUnlocking;
+ || keyguardForDozing) && !wakeAndUnlocking && !isWakingAndOccluded;
if (keyguardForDozing) {
updatePanelExpansionForKeyguard();
}
@@ -3714,6 +3715,10 @@ public class StatusBar extends SystemUI implements
== WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP;
}
+ boolean isWaking() {
+ return mWakefulnessLifecycle.getWakefulness() == WakefulnessLifecycle.WAKEFULNESS_WAKING;
+ }
+
public void notifyBiometricAuthModeChanged() {
mDozeServiceHost.updateDozing();
updateScrimController();