diff options
author | Connectety-T <connectetyGit@yandex.com> | 2021-01-23 02:46:34 +0100 |
---|---|---|
committer | Connectety-T <connectetyGit@yandex.com> | 2021-01-23 02:46:34 +0100 |
commit | b84b2026294206686df5482cc50d94f31e00f3a0 (patch) | |
tree | 71ebc633226989b2f8c84fc30bc89441ac2ca5ef /core | |
parent | 03c71ee6c52820317b6cc2fdff10ebc624360507 (diff) | |
download | AntennaPod-b84b2026294206686df5482cc50d94f31e00f3a0.zip |
add setGroupAlertBehavior to episode notifications.
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 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); |