Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9271572e
authored
Jul 15, 2022
by
olly
Committed by
Rohit Singh
Jul 15, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add TODOs for registerReceiver calls without flag
PiperOrigin-RevId: 461165173
parent
be27daeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
libraries/session/src/main/java/androidx/media3/session/MediaSessionImpl.java
libraries/ui/src/main/java/androidx/media3/ui/PlayerNotificationManager.java
libraries/session/src/main/java/androidx/media3/session/MediaSessionImpl.java
View file @
9271572e
...
...
@@ -210,6 +210,7 @@ import org.checkerframework.checker.initialization.qual.Initialized;
broadcastReceiver
=
new
MediaButtonReceiver
();
IntentFilter
filter
=
new
IntentFilter
(
Intent
.
ACTION_MEDIA_BUTTON
);
filter
.
addDataScheme
(
castNonNull
(
sessionUri
.
getScheme
()));
// TODO(b/197817693): Explicitly indicate whether the receiver should be exported.
context
.
registerReceiver
(
broadcastReceiver
,
filter
);
}
else
{
// Has MediaSessionService to revive playback after it's dead.
...
...
libraries/ui/src/main/java/androidx/media3/ui/PlayerNotificationManager.java
View file @
9271572e
...
...
@@ -1164,6 +1164,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
);
}
if
(
notificationListener
!=
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment