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
This commit is contained in:
Steven Ng
2025-05-06 17:56:01 +00:00
parent d7802c985c
commit 3f9fa4e2db

View File

@@ -382,7 +382,7 @@ constructor(
}
override fun shouldAnimateStateChange(): Boolean {
return true
return false
}
override fun isInState(state: RecentsState?): Boolean {