From 16ddd9e807a1d67ee40590d430f700091de01c76 Mon Sep 17 00:00:00 2001 From: Brad Hinegardner Date: Tue, 6 Dec 2022 15:17:34 -0500 Subject: [PATCH] Handle DeadObjectExeption when changing users Bug: 254633479 Test: manual verification Change-Id: I40bd60bcb20078d548dd59d03ac612ef4a80b2c6 --- .../systemui/keyguard/KeyguardUnlockAnimationController.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt index a908e943bbf52..0c46b23fd23ed 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardUnlockAnimationController.kt @@ -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