mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Add split placeholder view above OverviewScrim
Only show single split option for landscape and seascape overview menu options. Bug: 181705607 Change-Id: I577fbaed41b5debd007c953851ec2056988057d9
This commit is contained in:
@@ -92,6 +92,7 @@ public abstract class BaseQuickstepLauncher extends Launcher
|
||||
private final TaskbarStateHandler mTaskbarStateHandler = new TaskbarStateHandler(this);
|
||||
// Will be updated when dragging from taskbar.
|
||||
private @Nullable DragOptions mNextWorkspaceDragOptions = null;
|
||||
private SplitPlaceholderView mSplitPlaceholderView;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@@ -215,12 +216,12 @@ public abstract class BaseQuickstepLauncher extends Launcher
|
||||
|
||||
SysUINavigationMode.INSTANCE.get(this).updateMode();
|
||||
mActionsView = findViewById(R.id.overview_actions_view);
|
||||
SplitPlaceholderView splitPlaceholderView = findViewById(R.id.split_placeholder);
|
||||
mSplitPlaceholderView = findViewById(R.id.split_placeholder);
|
||||
RecentsView overviewPanel = (RecentsView) getOverviewPanel();
|
||||
splitPlaceholderView.init(
|
||||
mSplitPlaceholderView.init(
|
||||
new SplitSelectStateController(SystemUiProxy.INSTANCE.get(this))
|
||||
);
|
||||
overviewPanel.init(mActionsView, splitPlaceholderView);
|
||||
overviewPanel.init(mActionsView, mSplitPlaceholderView);
|
||||
mActionsView.updateVerticalMargin(SysUINavigationMode.getMode(this));
|
||||
|
||||
mAppTransitionManager = new QuickstepTransitionManager(this);
|
||||
@@ -256,6 +257,10 @@ public abstract class BaseQuickstepLauncher extends Launcher
|
||||
return (T) mActionsView;
|
||||
}
|
||||
|
||||
public SplitPlaceholderView getSplitPlaceholderView() {
|
||||
return mSplitPlaceholderView;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void closeOpenViews(boolean animate) {
|
||||
super.closeOpenViews(animate);
|
||||
|
||||
Reference in New Issue
Block a user