diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index c0658519dc..017a3b8589 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -4357,15 +4357,22 @@ public abstract class RecentsView remoteTargetHandle - .getTransformParams().getTargetSet() - .addReleaseCheck(mSyncTransactionApplier)); - } + // Add release check to the targets from the RemoteTargetGluer and not the targets + // passed in because in the event we're in split screen, we use the passed in targets + // to create new RemoteAnimationTargets in assignTargetsForSplitScreen(), and the + // mSyncTransactionApplier doesn't get transferred over + runActionOnRemoteHandles(remoteTargetHandle -> { + final TransformParams params = remoteTargetHandle.getTransformParams(); + if (mSyncTransactionApplier != null) { + params.setSyncTransactionApplier(mSyncTransactionApplier); + params.getTargetSet().addReleaseCheck(mSyncTransactionApplier); + } + + TaskViewSimulator tvs = remoteTargetHandle.getTaskViewSimulator(); + tvs.setOrientationState(mOrientationState); + tvs.setDp(mActivity.getDeviceProfile()); + tvs.recentsViewScale.value = 1; + }); TaskView runningTaskView = getRunningTaskView(); if (runningTaskView instanceof GroupedTaskView) { @@ -4375,12 +4382,6 @@ public abstract class RecentsView