From 156b9b318443805f6b12726eace0a88850ca041c Mon Sep 17 00:00:00 2001 From: Massimo Carli Date: Mon, 10 Mar 2025 14:30:35 +0000 Subject: [PATCH] Consider userId in transparent policy heuristic Flag: com.android.window.flags.enable_modals_fullscreen_with_permission Bug: 401583497 Test: atest NexusLauncherTests:com.android.quickstep.DesktopSystemShortcutTest Test: atest NexusLauncherTests:com.android.quickstep.ExternalDisplaySystemShortcutTest Change-Id: Ife36b3a7e2ba0376cf72ca545fa05c5a90d52f07 --- quickstep/src/com/android/quickstep/DesktopSystemShortcut.kt | 1 + .../src/com/android/quickstep/ExternalDisplaySystemShortcut.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/quickstep/src/com/android/quickstep/DesktopSystemShortcut.kt b/quickstep/src/com/android/quickstep/DesktopSystemShortcut.kt index 914855bf1b..4280baf21d 100644 --- a/quickstep/src/com/android/quickstep/DesktopSystemShortcut.kt +++ b/quickstep/src/com/android/quickstep/DesktopSystemShortcut.kt @@ -82,6 +82,7 @@ class DesktopSystemShortcut( taskKey.numActivities, taskKey.isTopActivityNoDisplay, taskKey.isActivityStackTransparent, + taskKey.userId, ) -> null !taskContainer.task.isDockable -> null diff --git a/quickstep/src/com/android/quickstep/ExternalDisplaySystemShortcut.kt b/quickstep/src/com/android/quickstep/ExternalDisplaySystemShortcut.kt index f97cf9cd91..3b823f5e60 100644 --- a/quickstep/src/com/android/quickstep/ExternalDisplaySystemShortcut.kt +++ b/quickstep/src/com/android/quickstep/ExternalDisplaySystemShortcut.kt @@ -80,6 +80,7 @@ class ExternalDisplaySystemShortcut( taskKey.numActivities, taskKey.isTopActivityNoDisplay, taskKey.isActivityStackTransparent, + taskKey.userId, ) -> null else -> {