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) .setContentText(text)
.setContentIntent(pendingIntent) .setContentIntent(pendingIntent)
.setGroup(GROUP_KEY) .setGroup(GROUP_KEY)
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY)
.setAutoCancel(true) .setAutoCancel(true)
.build(); .build();
@ -101,6 +102,7 @@ public class NewEpisodesNotification {
.setContentIntent(pendingIntent) .setContentIntent(pendingIntent)
.setGroup(GROUP_KEY) .setGroup(GROUP_KEY)
.setGroupSummary(true) .setGroupSummary(true)
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY)
.setAutoCancel(true) .setAutoCancel(true)
.build(); .build();
notificationManager.notify(NotificationUtils.CHANNEL_ID_EPISODE_NOTIFICATIONS, 0, notificationGroupSummary); notificationManager.notify(NotificationUtils.CHANNEL_ID_EPISODE_NOTIFICATIONS, 0, notificationGroupSummary);