From 3f9fa4e2db7caaee1600ca0d189e3cb5d29dee96 Mon Sep 17 00:00:00 2001 From: Steven Ng Date: Tue, 6 May 2025 17:56:01 +0000 Subject: [PATCH] Don't show phantom animation when switching app in connected display oveview In TaskViewUtils, the StateManager#movetoRestState method is invoked after the recents animation finishes and before the launcher state is reapplied. The issue leading to a phantom transition is that moveToRestState initiates an animation due to RecentsWindowManager#shouldAnimateStateChange always returns true. Connected display overview is similar to 3P recents. And thus, we follow RecentsActivity#shouldAnimateStateChange to always return false. Test: manually click on a overview tile in the connected display. No phantom animation is observed after switching to the app. Flag: com.android.launcher3.enable_overview_on_connected_displays Bug: 415245440 Change-Id: I3c9600cae6ce9058749365734f433f5e3cdb9445 --- .../android/quickstep/fallback/window/RecentsWindowManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/fallback/window/RecentsWindowManager.kt b/quickstep/src/com/android/quickstep/fallback/window/RecentsWindowManager.kt index 42754c3bc9..f2d516c936 100644 --- a/quickstep/src/com/android/quickstep/fallback/window/RecentsWindowManager.kt +++ b/quickstep/src/com/android/quickstep/fallback/window/RecentsWindowManager.kt @@ -382,7 +382,7 @@ constructor( } override fun shouldAnimateStateChange(): Boolean { - return true + return false } override fun isInState(state: RecentsState?): Boolean {