commit | 7f1c09cb105a718af28135d5c9b0022e77dcac19 | [log] [tgz] |
---|---|---|
author | Josh Tsuji <tsuji@google.com> | Mon Jul 26 16:10:50 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jul 26 16:10:50 2021 +0000 |
tree | ab8bdb6b24b5dc9e7a0f5e47304ad4c5048e64db | |
parent | 40613918aa3e3b999423f86953e36edd31eb1f00 [diff] | |
parent | 78ef14e8a0456bf57a58b81c29f3f43e4344ffdc [diff] |
Merge "Reset to LiftReveal when going to sleep due to timing out, after a biometric auth." into sc-dev am: 7db2ece5c7 am: 78ef14e8a0 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15362342 Change-Id: I93bd0e95c7bbd3ccceb0383dae2deb3c33433fae
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 a9e949c..b51572e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
@@ -3964,7 +3964,11 @@ || !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); } }