From 7ee3651a1972178e2e3811d3672cdfcfdd5005fb Mon Sep 17 00:00:00 2001 From: Evan Rosky Date: Wed, 5 May 2021 17:01:45 -0700 Subject: [PATCH] Launch overview as transient This way it won't cause the top running activity to pause until the transition completes Bug: 183993884 Test: enable shell_transitions, launch an app, go to overview, observe dumpsys and see that app remains RESUMED Change-Id: I4311ade2e47062129874ae92bc7f5bea81bf2439 --- quickstep/src/com/android/quickstep/TaskAnimationManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/TaskAnimationManager.java b/quickstep/src/com/android/quickstep/TaskAnimationManager.java index c87cd171be..9d79d252f1 100644 --- a/quickstep/src/com/android/quickstep/TaskAnimationManager.java +++ b/quickstep/src/com/android/quickstep/TaskAnimationManager.java @@ -159,7 +159,8 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn if (ENABLE_SHELL_TRANSITIONS) { RemoteTransitionCompat transition = new RemoteTransitionCompat(mCallbacks, mController != null ? mController.getController() : null); - Bundle options = ActivityOptionsCompat.makeRemoteTransition(transition).toBundle(); + Bundle options = ActivityOptionsCompat.makeRemoteTransition(transition) + .setTransientLaunch().toBundle(); mCtx.startActivity(intent, options); } else { UI_HELPER_EXECUTOR.execute(() -> ActivityManagerWrapper.getInstance()