mirror of
https://github.com/samsonjs/media.git
synced 2026-04-26 14:57:47 +00:00
Mark broadcast receivers as not exported
They are called from the system only and don't need to be exported
to be visible to other apps.
PiperOrigin-RevId: 489210264
(cherry picked from commit c1fd03df74)
This commit is contained in:
parent
e42c65bc3e
commit
0d11d55111
1 changed files with 1 additions and 2 deletions
|
|
@ -1162,8 +1162,7 @@ public class PlayerNotificationManager {
|
|||
Notification notification = builder.build();
|
||||
notificationManager.notify(notificationId, notification);
|
||||
if (!isNotificationStarted) {
|
||||
// TODO(b/197817693): Explicitly indicate whether the receiver should be exported.
|
||||
context.registerReceiver(notificationBroadcastReceiver, intentFilter);
|
||||
Util.registerReceiverNotExported(context, notificationBroadcastReceiver, intentFilter);
|
||||
}
|
||||
if (notificationListener != null) {
|
||||
// Always pass true for ongoing with the first notification to tell a service to go into
|
||||
|
|
|
|||
Loading…
Reference in a new issue