From b9d3a5cc447a4d05b677192a304c88bf2a71d9bf Mon Sep 17 00:00:00 2001 From: Xiaoqian Dai Date: Thu, 1 May 2025 23:46:46 +0000 Subject: [PATCH] desktop-exploded-view: temporarily disable the functionality... ... to launch an individual task window from desktop tile in Overview when multi-desks is enabled, until the fix for b/413378320 is landed. Note the changes in http://ag/q/topic:%22activate-window-from-exploded-view%22 is the right implementation, however it will only work for multi-desks with the fix for b/413378320 is in place. Flag: com.android.launcher3.enable_desktop_exploded_view Test: Manual Bug: 413378320 Change-Id: I72914d60fb0ec2e80af6faa7441a67e743720c38 --- quickstep/src/com/android/quickstep/views/DesktopTaskView.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/DesktopTaskView.kt b/quickstep/src/com/android/quickstep/views/DesktopTaskView.kt index 93df80418a..7aa24a9d60 100644 --- a/quickstep/src/com/android/quickstep/views/DesktopTaskView.kt +++ b/quickstep/src/com/android/quickstep/views/DesktopTaskView.kt @@ -402,7 +402,10 @@ class DesktopTaskView @JvmOverloads constructor(context: Context, attrs: Attribu } else { taskContentView } - if (enableDesktopExplodedView()) { + if (enableDesktopExplodedView() && !enableMultipleDesktops(context)) { + // Note, currently there are some issues with launching an individual app window + // with multi-desks enabled, see b/413378320. Will enable this functionality + // after b/413378320 is fixed. snapshotView.setOnClickListener { launchTaskWithDesktopController(animated = true, task.key.id) }