diff options
| author | 2025-03-05 03:57:02 -0800 | |
|---|---|---|
| committer | 2025-03-05 03:57:02 -0800 | |
| commit | 448853d016acb7367f3946824b9671f9db2cee84 (patch) | |
| tree | 3b42fc4edc6875a3fa869b2f572cb2c2fd2948c8 | |
| parent | f51c7e13064e6d026f2c94cac6be1078f0699b59 (diff) | |
| parent | 659cd955f75da8069f3616c310d97c0a63635dcb (diff) | |
Merge "Fix repeat HUNs after autogrouping" into main
| -rw-r--r-- | services/core/java/com/android/server/notification/NotificationManagerService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index bfe0d32f4cb6..7a544cf1c26c 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -1075,6 +1075,7 @@ public class NotificationManagerService extends SystemService { summary.getSbn().getNotification().getGroupAlertBehavior(); if (notificationForceGrouping()) { + summary.getNotification().flags |= Notification.FLAG_SILENT; if (!summary.getChannel().getId().equals(summaryAttr.channelId)) { NotificationChannel newChannel = mPreferencesHelper.getNotificationChannel(pkg, summary.getUid(), summaryAttr.channelId, false); @@ -7450,6 +7451,7 @@ public class NotificationManagerService extends SystemService { // Override group key early for forced grouped notifications r.setOverrideGroupKey(groupName); } + r.getNotification().flags |= Notification.FLAG_SILENT; } addAutoGroupAdjustment(r, groupName); |