Commit 22efef2d by birdbird Committed by GitHub

Disable badge in API 26 and 27

parent 26c8478d
...@@ -508,6 +508,9 @@ public class DefaultMediaNotificationProvider implements MediaNotification.Provi ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment