From 01e47343e6eda3ce15cffc79ee185ee9bbaeccda Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Thu, 30 Sep 2021 20:28:08 -0700 Subject: [PATCH] Set SurfaceTransactionApplier on non-stale RemoteAnimationTargets * When we create RemoteTargetHandles we create a new RemoteAnimationTarget from the old ones, which weren't getting their addReleaseCheck() methods called * The old recentsAnimationTargets were having it be set on them, however they go unused. Bug: 199043513 Change-Id: I36317f213139435ec09997290853787e30d11e0f --- .../com/android/quickstep/views/RecentsView.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index e1a389582f..4f46ab5007 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -4236,13 +4236,19 @@ public abstract class RecentsView remoteTargetHandle + .getTransformParams().getTargetSet() + .addReleaseCheck(mSyncTransactionApplier)); + } + TaskView runningTaskView = getRunningTaskView(); if (runningTaskView instanceof GroupedTaskView) { // We initially create a GroupedTaskView in showCurrentTask() before launcher even