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 committed 2022-04-08 12:15:16 -07:00
1 parent db2c726560
commit abdf25d226
4 files changed
+114 -36

No files matched your search

@@ -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));
}