mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add TODOs for registerReceiver calls without flag
PiperOrigin-RevId: 461165173
(cherry picked from commit 9271572e95)
This commit is contained in:
parent
ac2a5e56b0
commit
6eb30ce233
2 changed files with 2 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ import org.checkerframework.checker.initialization.qual.Initialized;
|
||||||
broadcastReceiver = new MediaButtonReceiver();
|
broadcastReceiver = new MediaButtonReceiver();
|
||||||
IntentFilter filter = new IntentFilter(Intent.ACTION_MEDIA_BUTTON);
|
IntentFilter filter = new IntentFilter(Intent.ACTION_MEDIA_BUTTON);
|
||||||
filter.addDataScheme(castNonNull(sessionUri.getScheme()));
|
filter.addDataScheme(castNonNull(sessionUri.getScheme()));
|
||||||
|
// TODO(b/197817693): Explicitly indicate whether the receiver should be exported.
|
||||||
context.registerReceiver(broadcastReceiver, filter);
|
context.registerReceiver(broadcastReceiver, filter);
|
||||||
} else {
|
} else {
|
||||||
// Has MediaSessionService to revive playback after it's dead.
|
// Has MediaSessionService to revive playback after it's dead.
|
||||||
|
|
|
||||||
|
|
@ -1164,6 +1164,7 @@ public class PlayerNotificationManager {
|
||||||
Notification notification = builder.build();
|
Notification notification = builder.build();
|
||||||
notificationManager.notify(notificationId, notification);
|
notificationManager.notify(notificationId, notification);
|
||||||
if (!isNotificationStarted) {
|
if (!isNotificationStarted) {
|
||||||
|
// TODO(b/197817693): Explicitly indicate whether the receiver should be exported.
|
||||||
context.registerReceiver(notificationBroadcastReceiver, intentFilter);
|
context.registerReceiver(notificationBroadcastReceiver, intentFilter);
|
||||||
}
|
}
|
||||||
if (notificationListener != null) {
|
if (notificationListener != null) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue