From a20184bc2569109f4dc44de1626a0df20eb5f141 Mon Sep 17 00:00:00 2001 From: Achim Thesmann Date: Fri, 11 Nov 2022 18:24:20 -0800 Subject: [PATCH] Explicitly allow BAL from notifications and status bar. This does not change the current behavior, but makes sure future changes to the BAL logic don't prevent starting PendingIntents of non-privileged apps when the user explicitly expects this to happen. Change-Id: I8dd530e9d81ddac554f8990e7a3c2dbd188d2704 Test: atest OpenAppFromNotificationWarm Bug: b/244637991 --- .../com/android/systemui/statusbar/phone/CentralSurfaces.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java index be0818339b748..01ca66742287f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java @@ -122,6 +122,7 @@ public interface CentralSurfaces extends Dumpable, ActivityStarter, LifecycleOwn ActivityOptions options = getDefaultActivityOptions(animationAdapter); options.setLaunchDisplayId(displayId); options.setCallerDisplayId(displayId); + options.setPendingIntentBackgroundActivityLaunchAllowed(true); return options.toBundle(); } @@ -145,6 +146,7 @@ public interface CentralSurfaces extends Dumpable, ActivityStarter, LifecycleOwn : ActivityOptions.SourceInfo.TYPE_NOTIFICATION, eventTime); options.setLaunchDisplayId(displayId); options.setCallerDisplayId(displayId); + options.setPendingIntentBackgroundActivityLaunchAllowed(true); return options.toBundle(); }