Merge "Bring back Keyguard CANNED_UNLOCK_START_DELAY wait" into udc-dev am: c42b01e3e2

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

Change-Id: I31dc343a5c01f42b45bdc832b1389998cadbe777
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Robin Lee
2023-05-25 14:34:39 +00:00
committed by Automerger Merge Worker

View File

@@ -668,8 +668,24 @@ class KeyguardUnlockAnimationController @Inject constructor(
lockscreenSmartspace?.visibility = View.INVISIBLE lockscreenSmartspace?.visibility = View.INVISIBLE
} }
// Start an animation for the wallpaper, which will finish keyguard exit when it completes. // As soon as the shade has animated out of the way, start the canned unlock animation,
fadeInWallpaper() // which will finish keyguard exit when it completes. The in-window animations in the
// Launcher window will end on their own.
handler.postDelayed({
if (keyguardViewMediator.get().isShowingAndNotOccluded &&
!keyguardStateController.isKeyguardGoingAway) {
Log.e(TAG, "Finish keyguard exit animation delayed Runnable ran, but we are " +
"showing and not going away.")
return@postDelayed
}
if (wallpaperTargets != null) {
fadeInWallpaper()
} else {
keyguardViewMediator.get().exitKeyguardAndFinishSurfaceBehindRemoteAnimation(
false /* cancelled */)
}
}, CANNED_UNLOCK_START_DELAY)
} }
/** /**