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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user