Handle DeadObjectExeption when changing users

Bug: 254633479
Test: manual verification
Change-Id: I40bd60bcb20078d548dd59d03ac612ef4a80b2c6
This commit is contained in:
Brad Hinegardner
2022-12-06 15:17:34 -05:00
parent 5b7da895e2
commit 16ddd9e807

View File

@@ -829,7 +829,11 @@ class KeyguardUnlockAnimationController @Inject constructor(
surfaceBehindEntryAnimator.cancel()
surfaceBehindAlpha = 1f
setSurfaceBehindAppearAmount(1f)
launcherUnlockController?.setUnlockAmount(1f, false /* forceIfAnimating */)
try {
launcherUnlockController?.setUnlockAmount(1f, false /* forceIfAnimating */)
} catch (e: RemoteException) {
Log.e(TAG, "Remote exception in notifyFinishedKeyguardExitAnimation", e)
}
// That target is no longer valid since the animation finished, null it out.
surfaceBehindRemoteAnimationTargets = null