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

Commit 211bd6b9 authored by Mady Mellor's avatar Mady Mellor
Browse files

Add BAL flags to BubbleBarExpandedView

Flag: WM_BUBBLE_BAR
Test: manual - open and close some bubbles and ensure the view never
               goes transparent
Bug: 279032445
Change-Id: Id8c23ece3912bbfd337d66af19a8ae2659bcdf09
parent 90c0f00a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
 */
package com.android.wm.shell.bubbles;

import static android.app.ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED;
import static android.app.ActivityTaskManager.INVALID_TASK_ID;
import static android.content.Intent.FLAG_ACTIVITY_MULTIPLE_TASK;
import static android.content.Intent.FLAG_ACTIVITY_NEW_DOCUMENT;
@@ -110,6 +111,9 @@ public class BubbleTaskViewHelper {
                try {
                    options.setTaskAlwaysOnTop(true);
                    options.setLaunchedFromBubble(true);
                    options.setPendingIntentBackgroundActivityStartMode(
                            MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
                    options.setPendingIntentBackgroundActivityLaunchAllowedByPermission(true);

                    Intent fillInIntent = new Intent();
                    // Apply flags to make behaviour match documentLaunchMode=always.