Add overview taskbar split support for 3P launcher

* Created b/268120202 to track other states of split
selection that are unhandled on 3P launchers

Test: Able to initiate split in overview with 3P launcher
Fixes: 264576761
Change-Id: I0311fe83380bf914fa79956b2565b61cc5eab916
This commit is contained in:
Vinit Nayak
2023-02-06 18:02:50 -08:00
parent a75105ef03
commit f4e7e5aaf4
5 changed files with 114 additions and 9 deletions
@@ -44,6 +44,17 @@ public class FallbackTaskbarUIController extends TaskbarUIController {
getRecentsView().setTaskLaunchListener(toState == RecentsState.DEFAULT
? (() -> animateToRecentsState(RecentsState.BACKGROUND_APP)) : null);
}
@Override
public void onStateTransitionComplete(RecentsState finalState) {
boolean finalStateDefault = finalState == RecentsState.DEFAULT;
// TODO(b/268120202) Taskbar shows up on 3P home, currently we don't go to
// overview from 3P home. Either implement that or it'll change w/ contextual?
boolean disallowLongClick = finalState == RecentsState.OVERVIEW_SPLIT_SELECT;
Utilities.setOverviewDragState(mControllers,
finalStateDefault /*disallowGlobalDrag*/, disallowLongClick,
finalStateDefault /*allowInitialSplitSelection*/);
}
};
public FallbackTaskbarUIController(RecentsActivity recentsActivity) {