mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
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:
@@ -382,7 +382,7 @@ constructor(
|
||||
}
|
||||
|
||||
override fun shouldAnimateStateChange(): Boolean {
|
||||
return true
|
||||
return false
|
||||
}
|
||||
|
||||
override fun isInState(state: RecentsState?): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user