Prevent meta shortcut from cancelling split select state.

There are two things that need to be changed for this to work:

1. Make the isInOverview condition check for any Overview UI (including
   the split select state, modal, etc.)
2. Toggle Home All Apps directly, because firing the intent will cause
   Launcher to pause and resume before the intent is handled. We
misinterpret the pause as a request to cancel split screen. Since
TaskbarManager has a reference to Launcher, we might as well call the
method directly.

Test: Manual
Fix: 319076403
Flag: N/A
Change-Id: Ib8899188f593a168a054a16717df4a95be098557
This commit is contained in:
Brian Isganitis
2024-04-09 10:55:58 -07:00
parent be2a18d3fc
commit 84fbec0b16
8 changed files with 23 additions and 19 deletions
@@ -666,8 +666,8 @@ public class TaskbarLauncherStateController {
&& !mLauncher.getWorkspace().isOverlayShown();
}
boolean isInOverview() {
return mLauncherState == LauncherState.OVERVIEW;
boolean isInOverviewUi() {
return mLauncherState.overviewUi;
}
private void playStateTransitionAnim(AnimatorSet animatorSet, long duration,