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
@@ -30,4 +30,18 @@ public final class Utilities {
str.add(flagName);
}
}
/**
* Sets drag, long-click, and split selection behavior on 1P and 3P launchers with Taskbar
*/
static void setOverviewDragState(TaskbarControllers controllers,
boolean disallowGlobalDrag, boolean disallowLongClick,
boolean allowInitialSplitSelection) {
controllers.taskbarDragController.setDisallowGlobalDrag(disallowGlobalDrag);
controllers.taskbarDragController.setDisallowLongClick(disallowLongClick);
controllers.taskbarAllAppsController.setDisallowGlobalDrag(disallowGlobalDrag);
controllers.taskbarAllAppsController.setDisallowLongClick(disallowLongClick);
controllers.taskbarPopupController.setAllowInitialSplitSelection(
allowInitialSplitSelection);
}
}