From b84b2026294206686df5482cc50d94f31e00f3a0 Mon Sep 17 00:00:00 2001 From: Connectety-T Date: Sat, 23 Jan 2021 02:46:34 +0100 Subject: [PATCH] add setGroupAlertBehavior to episode notifications. --- .../core/service/download/NewEpisodesNotification.java | 2 ++ 1 file changed, 2 insertions(+) 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 749f7b136..d094b1f24 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 { .setContentText(text) .setContentIntent(pendingIntent) .setGroup(GROUP_KEY) + .setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY) .setAutoCancel(true) .build(); @@ -101,6 +102,7 @@ public class NewEpisodesNotification { .setContentIntent(pendingIntent) .setGroup(GROUP_KEY) .setGroupSummary(true) + .setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY) .setAutoCancel(true) .build(); notificationManager.notify(NotificationUtils.CHANNEL_ID_EPISODE_NOTIFICATIONS, 0, notificationGroupSummary);