From 6f4613749e5970297b5731f6345a35a85a3543c4 Mon Sep 17 00:00:00 2001 From: Evan Rosky Date: Mon, 27 Jun 2022 16:05:28 -0700 Subject: [PATCH] Let launcher clean-up shell transition leashes Originally disabled this when we were directly using the transition's leashes for animation (since the transition system owns those leashes). However, now that we create our own leashes in RemoteAnimationAdapterCompat, we can use this logic again. Bug: 235616350 Test: launch and close app in quick succession Change-Id: I27f70f26e114443aeb83671437f54747aae92c51 --- .../src/com/android/quickstep/RemoteAnimationTargets.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/quickstep/src/com/android/quickstep/RemoteAnimationTargets.java b/quickstep/src/com/android/quickstep/RemoteAnimationTargets.java index b20d48806a..1bd808d13d 100644 --- a/quickstep/src/com/android/quickstep/RemoteAnimationTargets.java +++ b/quickstep/src/com/android/quickstep/RemoteAnimationTargets.java @@ -17,8 +17,6 @@ package com.android.quickstep; import static android.view.WindowManager.LayoutParams.TYPE_NAVIGATION_BAR; -import static com.android.quickstep.TaskAnimationManager.ENABLE_SHELL_TRANSITIONS; - import com.android.systemui.shared.system.RemoteAnimationTargetCompat; import java.util.ArrayList; @@ -114,10 +112,6 @@ public class RemoteAnimationTargets { } public void release() { - if (ENABLE_SHELL_TRANSITIONS) { - mReleaseChecks.clear(); - return; - } if (mReleased) { return; }