Disable badge in API 26 and 27
This commit is contained in:
parent
26c8478de6
commit
22efef2dea
@ -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…
x
Reference in New Issue
Block a user