From 671913fd696451fee581373eadf86025d04341a4 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Mon, 11 Jul 2022 21:08:24 +0100 Subject: [PATCH] using the same group alert behaviour for the summary --- .../kotlin/app/dapk/st/notifications/NotificationFactory.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt b/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt index b21d56a..84d54d4 100644 --- a/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt +++ b/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt @@ -70,6 +70,10 @@ class NotificationFactory( smallIcon = R.drawable.ic_notification_small_icon, contentIntent = openAppIntent, groupId = GROUP_ID, + groupAlertBehavior = deviceMeta.whenPOrHigher( + block = { Notification.GROUP_ALERT_SUMMARY }, + fallback = { null } + ), isGroupSummary = true, ) }