diff options
author | 2021-07-26 19:20:55 +0000 | |
---|---|---|
committer | 2021-07-26 19:20:55 +0000 | |
commit | 9ddaf7f8a65a6a42680c8af6d4f1cc0b28b86503 (patch) | |
tree | 4b7dd373d9a1c37dc0c41426e79c95d8102ec43d | |
parent | d75cbc78c4df3e989d5cc713407fa3b9d366e08f (diff) | |
parent | 65c089de510ebf197db8f055ee74389865f3e7d3 (diff) |
Merge "Reset to LiftReveal when going to sleep due to timing out, after a biometric auth." into sc-dev am: 7db2ece5c7 am: 65c089de51
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15362342
Change-Id: I57e276b24afe46b2662c3093d7e6d9c964c23cc8
-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 a6e24f226fb4..2f1ae1eeb95e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -3965,7 +3965,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); } } |