Merge "Remove linkToDeath from KeyguardUnlockAnimationController." into tm-dev am: bb6353beb0

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

Change-Id: I00f3db3eef0c86ea2ab574c7fd788573782737b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Josh Tsuji
2022-06-14 16:57:33 +00:00
committed by Automerger Merge Worker

View File

@@ -216,13 +216,6 @@ class KeyguardUnlockAnimationController @Inject constructor(
*/ */
override fun setLauncherUnlockController(callback: ILauncherUnlockAnimationController?) { override fun setLauncherUnlockController(callback: ILauncherUnlockAnimationController?) {
launcherUnlockController = callback launcherUnlockController = callback
// If the provided callback dies, set it to null. We'll always check whether it's null
// to avoid DeadObjectExceptions.
callback?.asBinder()?.linkToDeath({
launcherUnlockController = null
launcherSmartspaceState = null
}, 0 /* flags */)
} }
/** /**