Merge "Bring back circle reveal from AOD" into sc-dev am: f0082ed1e1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14936992

Change-Id: I109c6486533b29b020658ca6a8b5642e90200b8b
This commit is contained in:
TreeHugger Robot
2021-06-14 06:09:37 +00:00
committed by Automerger Merge Worker

View File

@@ -3521,10 +3521,10 @@ public class StatusBar extends SystemUI implements DemoMode,
public void fadeKeyguardWhilePulsing() {
mNotificationPanelViewController.fadeOut(0, FADE_KEYGUARD_DURATION_PULSING,
()-> {
hideKeyguard();
if (shouldShowCircleReveal()) {
startCircleReveal();
}
hideKeyguard();
mStatusBarKeyguardViewManager.onKeyguardFadedAway();
}).start();
}
@@ -3882,9 +3882,7 @@ public class StatusBar extends SystemUI implements DemoMode,
updateQsExpansionEnabled();
mKeyguardViewMediator.setDozing(mDozing);
if (!isDozing && shouldShowCircleReveal()) {
startCircleReveal();
} else if ((isDozing && mWakefulnessLifecycle.getLastSleepReason()
if ((isDozing && mWakefulnessLifecycle.getLastSleepReason()
== PowerManager.GO_TO_SLEEP_REASON_POWER_BUTTON)
|| (!isDozing && mWakefulnessLifecycle.getLastWakeReason()
== PowerManager.WAKE_REASON_POWER_BUTTON)) {
@@ -4897,7 +4895,6 @@ public class StatusBar extends SystemUI implements DemoMode,
if (mFeatureFlags.useNewLockscreenAnimations()
&& (mDozeParameters.getAlwaysOn() || mDozeParameters.isQuickPickupEnabled())) {
mLightRevealScrim.setVisibility(View.VISIBLE);
mLightRevealScrim.setRevealEffect(LiftReveal.INSTANCE);
} else {
mLightRevealScrim.setVisibility(View.GONE);
}