Launch initial split from taskbar in overview app menu

* Consolidated init calls in SplitSelectStateController
* Also add support to launch from taskbar all apps
* Add logic in SplitSelectStateController to know whether
or not we need to dismiss existing TaskView vs relying
on mSplitHiddenTaskView null check
* Default click handling for SplitShortcut is to start
split selection mode

Bug: 251747761
Test: Initiated split from smart actions, thumbnail app
icon, home, taskbar in overview, all apps. Saw it choose
the latest thumbnail

Change-Id: Ib4f64e619c97615af458a19a9c0efd86c92979d9
This commit is contained in:
Vinit Nayak
2023-01-12 18:50:36 -08:00
parent 8995043d16
commit 49dc6d2712
15 changed files with 332 additions and 188 deletions

View File

@@ -125,7 +125,8 @@ import java.util.StringJoiner;
mControllers.taskbarDragController.setDisallowLongClick(disallowLongClick);
mControllers.taskbarAllAppsController.setDisallowGlobalDrag(disallowGlobalDrag);
mControllers.taskbarAllAppsController.setDisallowLongClick(disallowLongClick);
mControllers.taskbarPopupController.setHideSplitOptions(disallowGlobalDrag);
mControllers.taskbarPopupController.setAllowInitialSplitSelection(
disallowGlobalDrag);
}
};