Merge "Only show the frontend UI on the display if it is supported" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
7bacd8f0b7
@@ -942,7 +942,8 @@ public abstract class RecentsView<
|
||||
.inflate(R.layout.overview_clear_all_button, this, false);
|
||||
mClearAllButton.setOnClickListener(this::dismissAllTasks);
|
||||
|
||||
if (DesktopModeStatus.enableMultipleDesktops(mContext)) {
|
||||
if (DesktopModeStatus.isMultipleDesktopFrontendEnabledOnDisplay(mContext,
|
||||
mContainer.getDisplay())) {
|
||||
mAddDesktopButton = (AddDesktopButton) LayoutInflater.from(context).inflate(
|
||||
R.layout.overview_add_desktop_button, this, false);
|
||||
mAddDesktopButton.setOnClickListener(this::createDesk);
|
||||
|
||||
Reference in New Issue
Block a user