mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-27 17:09:22 +01:00
Do not show badges for ongoing notifications (Closes #2724)
This commit is contained in:
parent
3375fe0a24
commit
683e576987
@ -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…
x
Reference in New Issue
Block a user