Only sync app launch and taskbar when in Normal state.

Bug: 319162553
Test: Launch app from overview
Flag: com.android.launcher3.sync_app_launch_with_taskbar_stash
Change-Id: Ibb0849b251d5fa2f85c61946d1834fec78ef2e6a
This commit is contained in:
Jon Miranda committed 2025-03-27 11:36:07 -07:00
1 parent d4c2dedf81
commit e5f04cdde0
1 file changed
+1
@@ -369,6 +369,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
LauncherTaskbarUIController taskbarController = mLauncher.getTaskbarUIController();
if (syncAppLaunchWithTaskbarStash()
&& enableScalingRevealHomeAnimation()
&& mLauncher.getStateManager().getState() == NORMAL
&& taskbarController != null) {
taskbarController.setIgnoreInAppFlagForSync(true);
mLauncher.addEventCallback(EVENT_DESTROYED, onEndCallback::executeAllAndDestroy);