From 53a1493396cada80eb9c39b319000ad2ffe9a04c Mon Sep 17 00:00:00 2001 From: Ats Jenk Date: Thu, 20 Oct 2022 17:08:29 -0700 Subject: [PATCH] Execute WCT when showDesktopApps is called When shell transitions were enabled, we were not exeucting the WCT that brings desktop apps to front. Ensure that this is called when shell transitions are enabled. Bug: 254738174 Test: atest DesktopModeControllerTest Change-Id: Ie8391867a1d89ecdab7cbd5afd8cd80ecdc5b78c --- .../desktopmode/DesktopModeController.java | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopModeController.java b/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopModeController.java index e4043e059cbc5..d82ee754ed14a 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopModeController.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopModeController.java @@ -20,6 +20,7 @@ import static android.app.WindowConfiguration.WINDOWING_MODE_FREEFORM; import static android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN; import static android.view.WindowManager.TRANSIT_CHANGE; import static android.view.WindowManager.TRANSIT_OPEN; +import static android.view.WindowManager.TRANSIT_TO_FRONT; import static com.android.wm.shell.common.ExecutorUtils.executeRemoteCallWithTaskPermission; import static com.android.wm.shell.protolog.ShellProtoLogGroup.WM_SHELL_DESKTOP_MODE; @@ -181,7 +182,18 @@ public class DesktopModeController implements RemoteCallable activeTasks = mDesktopModeTaskRepository.getActiveTasks(); ProtoLog.d(WM_SHELL_DESKTOP_MODE, "bringDesktopAppsToFront: tasks=%s", activeTasks.size()); ArrayList taskInfos = new ArrayList<>(); @@ -197,11 +209,6 @@ public class DesktopModeController implements RemoteCallable