Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6aa393b5 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of [15374965, 15375897] into sc-release

Change-Id: Ia2b41d025e7e625483786f5d664daf86eeebd91c
parents 78d4c72e 73774fc8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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);
        }
    }