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:
@@ -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 */)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user