mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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,
|
channelId,
|
||||||
context.getString(channelNameResourceId),
|
context.getString(channelNameResourceId),
|
||||||
NotificationManager.IMPORTANCE_LOW);
|
NotificationManager.IMPORTANCE_LOW);
|
||||||
|
if (Util.SDK_INT == 26 || Util.SDK_INT == 27) {
|
||||||
|
channel.setShowBadge(false);
|
||||||
|
}
|
||||||
notificationManager.createNotificationChannel(channel);
|
notificationManager.createNotificationChannel(channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue