Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de3e21ec authored by Liran Binyamin's avatar Liran Binyamin
Browse files

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
parent 7ac3ea3f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
    }