add setGroupAlertBehavior to episode notifications.

This commit is contained in:
Connectety-T 2021-01-23 02:46:34 +01:00
parent 03c71ee6c5
commit b84b202629
No known key found for this signature in database
GPG Key ID: 2AEB1C2128639C5A
1 changed files with 2 additions and 0 deletions

View File

@ -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);