Introduce SingleTask and SplitTask

See go/refactor-group-task for details. This CL introduces `SingleTask`
and `SplitTask` and makes `GroupTask` abstract.

Bug: 388593902
Test: m
Flag: EXEMPT pure refactor with no behavior change.
Change-Id: I96d0eb0600420ce5cb2fff30ed9d766224b6961e
This commit is contained in:
Ahmed Fakhry committed 2025-01-23 23:48:01 +00:00
1 parent 71cbc13214
commit f87e44376b
16 files changed
+197 -91

No files matched your search

@@ -32,6 +32,7 @@ import com.android.quickstep.RecentsModel;
import com.android.quickstep.util.DesktopTask;
import com.android.quickstep.util.GroupTask;
import com.android.quickstep.util.LayoutUtils;
import com.android.quickstep.util.SingleTask;
import com.android.systemui.shared.recents.model.Task;
import com.android.systemui.shared.recents.model.ThumbnailData;
import com.android.systemui.shared.system.ActivityManagerWrapper;
@@ -270,7 +271,7 @@ public final class KeyboardQuickSwitchController implements
if (desktopTask != null) {
mTasks = desktopTask.getTasks().stream()
.map(GroupTask::new)
.map(SingleTask::new)
.filter(task -> !shouldExcludeTask(task, taskIdsToExclude))
.collect(Collectors.toList());
// All other tasks, apart from the grouped desktop task, are hidden