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
e2a77f7b
authored
Oct 31, 2022
by
microkatz
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #141 from tzugen:patch-4
PiperOrigin-RevId: 483395026
parents
fb755708
22efef2d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
RELEASENOTES.md
libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java
RELEASENOTES.md
View file @
e2a77f7b
...
@@ -84,6 +84,10 @@ Release notes
...
@@ -84,6 +84,10 @@ Release notes
(
[
#112
](
https://github.com/androidx/media/issues/112
)
).
(
[
#112
](
https://github.com/androidx/media/issues/112
)
).
*
Don't start a foreground service with a pending intent for pause
*
Don't start a foreground service with a pending intent for pause
(
[
#167
](
https://github.com/androidx/media/issues/167
)
).
(
[
#167
](
https://github.com/androidx/media/issues/167
)
).
*
Manually hide the 'badge' associated with the notification created by
`DefaultNotificationProvider`
on API 26 and API 27 (the badge is
automatically hidden on API 28+)
(
[
#131
](
https://github.com/androidx/media/issues/131
)
).
*
RTSP:
*
RTSP:
*
Add H263 fragmented packet handling
*
Add H263 fragmented packet handling
(
[
#119
](
https://github.com/androidx/media/pull/119
)
).
(
[
#119
](
https://github.com/androidx/media/pull/119
)
).
...
...
libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java
View file @
e2a77f7b
...
@@ -577,6 +577,12 @@ public class DefaultMediaNotificationProvider implements MediaNotification.Provi
...
@@ -577,6 +577,12 @@ public class DefaultMediaNotificationProvider implements MediaNotification.Provi
channelId
,
channelId
,
context
.
getString
(
channelNameResourceId
),
context
.
getString
(
channelNameResourceId
),
NotificationManager
.
IMPORTANCE_LOW
);
NotificationManager
.
IMPORTANCE_LOW
);
if
(
Util
.
SDK_INT
<=
27
)
{
// API 28+ will automatically hide the app icon 'badge' for notifications using
// Notification.MediaStyle, but we have to manually hide it for APIs 26 (when badges were
// added) and 27.
channel
.
setShowBadge
(
false
);
}
notificationManager
.
createNotificationChannel
(
channel
);
notificationManager
.
createNotificationChannel
(
channel
);
}
}
...
...
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