Remove desktop tile from proto 1 of desktop windowing

Separate desktop tile in overview that groups together all open desktop
tasks, is only available with prototype 2. In prototype 1 of desktop
windowing, each task will show up as a separate tile.

Bug: 266711786
Test: with proto1 enabled, launch some apps, open overview and observe each
  app having their own tile
Test: with proto1 enabled, tap on any tile in overview and observe that
  task is added to existing apps on desktop
Change-Id: Ic9385ff047e0c8908a74d88f88ae5c46e0309cfd
This commit is contained in:
Ats Jenk committed 2023-01-31 13:49:44 -08:00
1 parent ba73400fe1
commit f32f51794b
2 files changed
+7 -4

No files matched your search

@@ -17,7 +17,7 @@
package com.android.quickstep;
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
import static com.android.quickstep.views.DesktopTaskView.DESKTOP_MODE_SUPPORTED;
import static com.android.quickstep.views.DesktopTaskView.DESKTOP_IS_PROTO2_ENABLED;
import static com.android.wm.shell.util.GroupedRecentTaskInfo.TYPE_FREEFORM;
import android.annotation.TargetApi;
@@ -270,7 +270,7 @@ public class RecentTasksList {
TaskLoadResult allTasks = new TaskLoadResult(requestId, loadKeysOnly, rawTasks.size());
for (GroupedRecentTaskInfo rawTask : rawTasks) {
if (DESKTOP_MODE_SUPPORTED && rawTask.getType() == TYPE_FREEFORM) {
if (DESKTOP_IS_PROTO2_ENABLED && rawTask.getType() == TYPE_FREEFORM) {
GroupTask desktopTask = createDesktopTask(rawTask);
allTasks.add(desktopTask);
continue;