Add deskId to DesktopTask.
Now that `GroupedTaskInfo` propagates the `deskId` from Shell (see ag/31825217), we need to plumb this value in Launcher through `DesktopTask`. Future CLs will use this value in Overview. Bug: 395911284 Test: m, modified existing tests. Flag: com.android.window.flags.enable_multiple_desktops_frontend Flag: com.android.window.flags.enable_multiple_desktops_backend Change-Id: I396250e0cac761c4c5f7e8b2d6cddbe68e646217
This commit is contained in:
@@ -3044,8 +3044,12 @@ public abstract class RecentsView<
|
||||
// Add an empty view for now until the task plan is loaded and applied
|
||||
final TaskView taskView;
|
||||
if (needDesktopTask) {
|
||||
final int activeDeskId =
|
||||
DesktopVisibilityController.INSTANCE.get(mContext).getActiveDeskId(
|
||||
mContainer.getDisplay().getDisplayId());
|
||||
taskView = getTaskViewFromPool(TaskViewType.DESKTOP);
|
||||
((DesktopTaskView) taskView).bind(new DesktopTask(Arrays.asList(runningTasks)),
|
||||
((DesktopTaskView) taskView).bind(
|
||||
new DesktopTask(activeDeskId, Arrays.asList(runningTasks)),
|
||||
mOrientationState, mTaskOverlayFactory);
|
||||
} else if (needGroupTaskView) {
|
||||
taskView = getTaskViewFromPool(TaskViewType.GROUPED);
|
||||
|
||||
Reference in New Issue
Block a user