diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2021-10-15 22:03:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 22:03:35 +0200 |
commit | 62eda1fc1b53cfc641ac02aac4715453973a976a (patch) | |
tree | 258bdb845173c8a370e8be4363270056f1bbea4a /core | |
parent | e734d43e7287a0f0f3f678c5875a34bf6bc75716 (diff) | |
parent | 035f14f5840fa2d7a40bd0fc3cac91cfb1b608d5 (diff) | |
download | AntennaPod-62eda1fc1b53cfc641ac02aac4715453973a976a.zip |
Merge pull request #5470 from ByteHamster/alert-once
Alert only once for new episodes
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/download/NewEpisodesNotification.java | 2 |
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); |