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

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

No files matched your search

@@ -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);