From 93059166769ce72f5d22b2fc3ab0e00a9e014bbc Mon Sep 17 00:00:00 2001
From: Liran Binyamin <liranb@google.com>
Date: Fri, 31 May 2024 14:15:19 -0400
Subject: [PATCH] Create flag for reusing bubbled tasks

Flag: com.android.wm.shell.only_reuse_bubbled_task_when_launched_from_bubble
Test: NONE - adding flag
Bug: 328229865
Change-Id: I9f1a067786986b9b4f8c681da481546afa97c288
---
 .../WindowManager/Shell/aconfig/multitasking.aconfig | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/libs/WindowManager/Shell/aconfig/multitasking.aconfig b/libs/WindowManager/Shell/aconfig/multitasking.aconfig
index 08e695b6d6d2..15f8c328bb56 100644
--- a/libs/WindowManager/Shell/aconfig/multitasking.aconfig
+++ b/libs/WindowManager/Shell/aconfig/multitasking.aconfig
@@ -1,3 +1,5 @@
+# proto-file: build/make/tools/aconfig/aconfig_protos/protos/aconfig.proto
+
 package: "com.android.wm.shell"
 container: "system"
 
@@ -99,3 +101,13 @@ flag {
     description: "Enable UI affordances to put other content into a bubble"
     bug: "342245211"
 }
+
+flag {
+    name: "only_reuse_bubbled_task_when_launched_from_bubble"
+    namespace: "multitasking"
+    description: "Allow reusing bubbled tasks for new activities only when launching from bubbles"
+    bug: "328229865"
+    metadata {
+        purpose: PURPOSE_BUGFIX
+    }
+}
-- 
GitLab