Merge pull request #4891 from connectety/notify-change-group-alert

add setGroupAlertBehavior to episode notifications.
This commit is contained in:
ByteHamster 2021-01-23 12:57:19 +01:00 committed by GitHub
commit 12a98e5370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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