From 253e572d8d09cbfd2e61b917e5a9b65aea5d2009 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Wed, 15 Mar 2023 17:22:40 -0700 Subject: [PATCH] Set that bubbles have background launch permission too Without this bit the background launch gets blocked for some reason. Test: manual - open signal bubble from notification Bug: 270058419 Change-Id: Ieea1fd199a4c5313525747c9d836f3851f61b6ac --- .../src/com/android/wm/shell/bubbles/BubbleExpandedView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java index e5a4362e5bf07..9ccd6ebc51e21 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java @@ -229,6 +229,7 @@ public class BubbleExpandedView extends LinearLayout { 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.