mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Merge pull request #141 from tzugen:patch-4
PiperOrigin-RevId: 483395026
This commit is contained in:
commit
e2a77f7be9
2 changed files with 10 additions and 0 deletions
|
|
@ -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)).
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue