mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Disable badge in API 26 and 27
This commit is contained in:
parent
26c8478de6
commit
22efef2dea
1 changed files with 3 additions and 0 deletions
|
|
@ -508,6 +508,9 @@ public class DefaultMediaNotificationProvider implements MediaNotification.Provi
|
|||
channelId,
|
||||
context.getString(channelNameResourceId),
|
||||
NotificationManager.IMPORTANCE_LOW);
|
||||
if (Util.SDK_INT == 26 || Util.SDK_INT == 27) {
|
||||
channel.setShowBadge(false);
|
||||
}
|
||||
notificationManager.createNotificationChannel(channel);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue