diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-07-23 17:55:25 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-07-23 17:55:25 +0000 |
commit | 6aa393b52cd7362100a2b3e9b0b1dece473cf6dd (patch) | |
tree | 09fc045318e985f2e93a270bf6f1df83f83c7698 | |
parent | 78d4c72e53da68f9a7a7b1deb520c7e19025c191 (diff) | |
parent | 73774fc8f3afb47c1166c75b471839d1af634384 (diff) |
Merge cherrypicks of [15374965, 15375897] into sc-release
Change-Id: Ia2b41d025e7e625483786f5d664daf86eeebd91c
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java | 6 |
1 files changed, 5 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 742eae391a75..4d5c053b7e35 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -3950,7 +3950,11 @@ public class StatusBar extends SystemUI implements DemoMode, || !wakingUp && mWakefulnessLifecycle.getLastSleepReason() == PowerManager.GO_TO_SLEEP_REASON_POWER_BUTTON) { mLightRevealScrim.setRevealEffect(mPowerButtonReveal); - } else if (!(mLightRevealScrim.getRevealEffect() instanceof CircleReveal)) { + } else if (!wakingUp || !(mLightRevealScrim.getRevealEffect() instanceof CircleReveal)) { + // If we're going to sleep, but it's not from the power button, use the default reveal. + // If we're waking up, only use the default reveal if the biometric controller didn't + // already set it to the circular reveal because we're waking up from a fingerprint/face + // auth. mLightRevealScrim.setRevealEffect(LiftReveal.INSTANCE); } } |