add setGroupAlertBehavior to episode notifications.
This commit is contained in:
parent
03c71ee6c5
commit
b84b202629
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue