Implement splitting from Taskbar long-press

Implements the ability to split the screen by long-pressing a Taskbar icon.

Bug: 217964720
Test: Manual
Change-Id: I5d324d8ca912c10cc3c3de21cae98fad546b85ac
This commit is contained in:
Jeremy Sim
2022-03-31 17:02:11 -07:00
parent db2c726560
commit abdf25d226
4 changed files with 114 additions and 36 deletions

View File

@@ -40,16 +40,12 @@ public interface QuickstepSystemShortcut {
class SplitSelectSystemShortcut extends SystemShortcut<BaseQuickstepLauncher> {
private final BaseQuickstepLauncher mLauncher;
private final ItemInfo mItemInfo;
private final SplitPositionOption mPosition;
public SplitSelectSystemShortcut(BaseQuickstepLauncher launcher, ItemInfo itemInfo,
SplitPositionOption position) {
super(position.iconResId, position.textResId, launcher, itemInfo);
mLauncher = launcher;
mItemInfo = itemInfo;
mPosition = position;
}
@@ -71,7 +67,7 @@ public interface QuickstepSystemShortcut {
return;
}
RecentsView recentsView = mLauncher.getOverviewPanel();
RecentsView recentsView = mTarget.getOverviewPanel();
recentsView.initiateSplitSelect(
new SplitSelectSource(view, new BitmapDrawable(bitmap), intent, mPosition));
}