Merge pull request #2761 from ByteHamster/notification-badges
Do not show badges for ongoing notifications (Closes #2724)
This commit is contained in:
commit
5566b28943
|
@ -41,6 +41,7 @@ public class NotificationUtils {
|
||||||
NotificationChannel mChannel = new NotificationChannel(CHANNEL_ID_DOWNLOADING,
|
NotificationChannel mChannel = new NotificationChannel(CHANNEL_ID_DOWNLOADING,
|
||||||
c.getString(R.string.notification_channel_downloading), NotificationManager.IMPORTANCE_LOW);
|
c.getString(R.string.notification_channel_downloading), NotificationManager.IMPORTANCE_LOW);
|
||||||
mChannel.setDescription(c.getString(R.string.notification_channel_downloading_description));
|
mChannel.setDescription(c.getString(R.string.notification_channel_downloading_description));
|
||||||
|
mChannel.setShowBadge(false);
|
||||||
return mChannel;
|
return mChannel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,6 +50,7 @@ public class NotificationUtils {
|
||||||
NotificationChannel mChannel = new NotificationChannel(CHANNEL_ID_PLAYING,
|
NotificationChannel mChannel = new NotificationChannel(CHANNEL_ID_PLAYING,
|
||||||
c.getString(R.string.notification_channel_playing), NotificationManager.IMPORTANCE_LOW);
|
c.getString(R.string.notification_channel_playing), NotificationManager.IMPORTANCE_LOW);
|
||||||
mChannel.setDescription(c.getString(R.string.notification_channel_playing_description));
|
mChannel.setDescription(c.getString(R.string.notification_channel_playing_description));
|
||||||
|
mChannel.setShowBadge(false);
|
||||||
return mChannel;
|
return mChannel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue