Skip to content

Commit 4568c76

Browse files
authored
Merge pull request #7284 from marcelmu/wear_os_notifications
Set GroupAlertBehavior for Single (and Summary) Notifications
2 parents c9834ab + a6dfafd commit 4568c76

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/core/src/main/java/com/fsck/k9/notification/SingleMessageNotificationCreator.kt

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ internal class SingleMessageNotificationCreator(
2525
.setCategory(NotificationCompat.CATEGORY_EMAIL)
2626
.setGroup(baseNotificationData.groupKey)
2727
.setGroupSummary(isGroupSummary)
28+
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY)
2829
.setSmallIcon(resourceProvider.iconNewMail)
2930
.setColor(baseNotificationData.color)
3031
.setWhen(singleNotificationData.timestamp)

app/core/src/main/java/com/fsck/k9/notification/SummaryNotificationCreator.kt

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ internal class SummaryNotificationCreator(
5454
.setCategory(NotificationCompat.CATEGORY_EMAIL)
5555
.setGroup(baseNotificationData.groupKey)
5656
.setGroupSummary(true)
57+
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY)
5758
.setSmallIcon(resourceProvider.iconNewMail)
5859
.setColor(baseNotificationData.color)
5960
.setWhen(notificationData.timestamp)

0 commit comments

Comments
 (0)