Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de68b73d authored by Alex Chau's avatar Alex Chau Committed by Android (Google) Code Review
Browse files

Merge "Avoid unnecessarily add stub task for Desktop task" into main

parents d889ee37 576d6ba6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2747,8 +2747,10 @@ public abstract class RecentsView<CONTAINER_TYPE extends Context & RecentsViewCo
            return Arrays.stream(runningTasks).anyMatch(
                    runningTask -> !taskView.containsTaskId(runningTask.key.id));
        } else {
            // Ensure the TaskView only contains a single taskId, otherwise add a stub task.
            return taskView.containsMultipleTasks();
            // Ensure the TaskView only contains a single taskId, or is a DesktopTask,
            // otherwise add a stub task.
            // TODO(b/249371338): Figure out why DesktopTask only have a single runningTask.
            return taskView.containsMultipleTasks() && !taskView.isDesktopTask();
        }
    }