Merge "Revert "Launch split tasks at beginning of animation instead of the end"" into main

This commit is contained in:
Vinit Nayak
2024-04-16 01:11:05 +00:00
committed by Android (Google) Code Review
3 changed files with 20 additions and 26 deletions

View File

@@ -225,7 +225,11 @@ public class LauncherTaskbarUIController extends TaskbarUIController {
}
mTaskbarLauncherStateController.updateStateForFlag(FLAG_VISIBLE, isVisible);
if (fromInit) {
// TODO(b/308851855): Skip animation for launching split from home, will refine later
boolean skipAnimForSplit = enableSplitContextually() &&
mLauncher.areBothSplitAppsConfirmed() &&
mLauncher.getStateManager().getState() == LauncherState.NORMAL;
if (skipAnimForSplit || fromInit) {
duration = 0;
}
return mTaskbarLauncherStateController.applyState(duration, startAnimation);