From 5f8dd2023635b26a65052ff6ead41938f48f43db Mon Sep 17 00:00:00 2001 From: Jeremy Sim Date: Thu, 29 Dec 2022 16:18:22 -0800 Subject: [PATCH] Fix transition animations for launch-from-staged operation This change makes it so that a smoother animation will play when the user cancels the splitscreen flow by tapping the staged app to launch the app in fullscreen. Since this was the only blocker to activating the feature, this change also enables launch-from-staged by default and removes the flag. Fixes: 257513449 Test: Manual Change-Id: Iabff2fc72bfcd6975d216b5cd86e0df7a772b308 --- .../com/android/quickstep/views/RecentsView.java | 16 ++++------------ .../android/launcher3/config/FeatureFlags.java | 2 +- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 63aea452d0..85b222140a 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -2966,7 +2966,7 @@ public abstract class RecentsView launchStagedTask()); + pendingAnimation.addEndListener(animationSuccess -> + mSplitSelectStateController.launchSplitTasks(launchSuccess -> + resetFromSplitSelectionState())); pendingAnimation.buildAnim().start(); } @@ -4744,16 +4746,6 @@ public abstract class RecentsView resetFromSplitSelectionState()); - } else { - // Split staging was started from a new intent (from app menu in Home/AllApps) - mActivity.startActivity(mSplitSelectSource.intent); - } - } - protected void onTaskLaunchAnimationEnd(boolean success) { if (success) { resetTaskVisuals(); diff --git a/src/com/android/launcher3/config/FeatureFlags.java b/src/com/android/launcher3/config/FeatureFlags.java index b46e43f63b..3a11a325f9 100644 --- a/src/com/android/launcher3/config/FeatureFlags.java +++ b/src/com/android/launcher3/config/FeatureFlags.java @@ -364,7 +364,7 @@ public final class FeatureFlags { "ENABLE_DEVICE_PROFILE_LOGGING", false, "Allows DeviceProfile logging"); public static final BooleanFlag ENABLE_LAUNCH_FROM_STAGED_APP = getDebugFlag( - "ENABLE_LAUNCH_FROM_STAGED_APP", false, + "ENABLE_LAUNCH_FROM_STAGED_APP", true, "Enable the ability to tap a staged app during split select to launch it in full screen" );