Remove linkToDeath from KeyguardUnlockAnimationController.

This results in leaking the NexusLauncherActivity, and
should not be necessary as we check for DeadObjectExceptions
already.

Fixes: 221892011
Test: kill sysui/launcher in different orders, things still work fine
Change-Id: I8c86d37db602003f272b701f8d03724f21a7a930
This commit is contained in:
Josh Tsuji
2022-06-13 15:02:09 -04:00
parent dabda6cd25
commit 63c3a28a30

View File

@@ -216,13 +216,6 @@ class KeyguardUnlockAnimationController @Inject constructor(
*/
override fun setLauncherUnlockController(callback: ILauncherUnlockAnimationController?) {
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 */)
}
/**