diff options
| author | 2024-02-06 16:37:58 -0500 | |
|---|---|---|
| committer | 2024-02-06 16:37:58 -0500 | |
| commit | de3e21ec6b5919e9cbcd320420458eb367a40c47 (patch) | |
| tree | a145ed20e39c676cf955a5f4caeaa1294d122875 | |
| parent | 7ac3ea3fb08e7ad6417477ea4db21be0351c264b (diff) | |
Reuse existing task when going to Bubble settings
Previously we created a new task every time the user opened Bubble settings in the manage menu.
This change reuses the existing task, so only one shows in recents.
Fixes: 309884895
Test: Manual
- Add bubbles from 2 different apps
- Open bubble A -> menu -> settings
- Observe Settings app is shown for app A
- Go home
- Expand bubble B -> menu -> settings
- Observe Settings app is shown for app B
- Go to recents
- Observe a single task for Settings
Change-Id: I54bd0a50f58f550e95ad2807ba2555db6d2b8aea
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/Bubble.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/Bubble.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/Bubble.java index a2a2914f969f..7a4ad0a56022 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/Bubble.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/Bubble.java @@ -912,9 +912,8 @@ public class Bubble implements BubbleViewProvider { if (uid != -1) { intent.putExtra(Settings.EXTRA_APP_UID, uid); } - intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK); + intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); return intent; } |