summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2021-10-14 21:37:28 +0200
committerByteHamster <info@bytehamster.com>2021-10-14 21:37:28 +0200
commit035f14f5840fa2d7a40bd0fc3cac91cfb1b608d5 (patch)
treeec6b6c08c08a9b5d88ceed65dbc64f59021da169 /core
parent66250bebea5e2bef515651d310811ea7682a3c13 (diff)
downloadAntennaPod-035f14f5840fa2d7a40bd0fc3cac91cfb1b608d5.zip
Alert only once for new episodes
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/download/NewEpisodesNotification.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/NewEpisodesNotification.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/NewEpisodesNotification.java
index 869205b64..63e005927 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/service/download/NewEpisodesNotification.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/NewEpisodesNotification.java
@@ -79,6 +79,7 @@ public class NewEpisodesNotification {
.setContentIntent(pendingIntent)
.setGroup(GROUP_KEY)
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY)
+ .setOnlyAlertOnce(true)
.setAutoCancel(true)
.build();
@@ -102,6 +103,7 @@ public class NewEpisodesNotification {
.setGroup(GROUP_KEY)
.setGroupSummary(true)
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY)
+ .setOnlyAlertOnce(true)
.setAutoCancel(true)
.build();
notificationManager.notify(NotificationUtils.CHANNEL_ID_EPISODE_NOTIFICATIONS, 0, notificationGroupSummary);