Merge "Support launching minimized task into desktop" into main

This commit is contained in:
Jagrut Desai
2025-03-04 12:51:18 -08:00
committed by Android (Google) Code Review
@@ -1401,14 +1401,9 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
AppLaunchType.UNMINIMIZE, Cuj.CUJ_DESKTOP_MODE_APP_LAUNCH_FROM_ICON)
: null;
TaskView taskView = null;
if (recents != null) {
taskView = recents.getTaskViewByTaskId(info.getTaskId());
}
if (areDesktopTasksVisible() && taskView != null
&& mControllers.uiController.isInOverviewUi()) {
RunnableList runnableList = taskView.launchWithAnimation();
if (areDesktopTasksVisible() && mControllers.uiController.isInOverviewUi()) {
RunnableList runnableList = recents.launchRunningDesktopTaskView();
if (runnableList != null) {
runnableList.add(() ->
// wrapped it in runnable here since we need the post for DW to be