diff options
| author | 2023-05-25 14:53:49 +0000 | |
|---|---|---|
| committer | 2023-05-25 14:53:49 +0000 | |
| commit | 6bcaace5d291c5af8f18561d0c123b51c0ef3e58 (patch) | |
| tree | 231efe84923f701454391ef3a908eb224c21b624 | |
| parent | 270f6a56733c5ad12008b5269e3d1541d63e8f73 (diff) | |
| parent | cbc30ad229ff4fcb37acb07d21cbc8fb3ce963ee (diff) | |
Merge "Bring back Keyguard CANNED_UNLOCK_START_DELAY wait" into udc-dev am: c42b01e3e2 am: cbc30ad229
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23377876
Change-Id: Id1490ea548dbac9aebdea548ce840d1e15fe9af4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt index 1a158c89dee7..29a7fe7d061a 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt @@ -668,8 +668,24 @@ class KeyguardUnlockAnimationController @Inject constructor( lockscreenSmartspace?.visibility = View.INVISIBLE } - // Start an animation for the wallpaper, which will finish keyguard exit when it completes. - fadeInWallpaper() + // As soon as the shade has animated out of the way, start the canned unlock animation, + // 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) } /** |