mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user