Skip to content

Commit

Permalink
Handle notification group overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
italankin committed May 23, 2022
1 parent 88c1bd4 commit 540cac6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public List<AppNotificationUi> createNotifications(@Nullable NotificationBag bag
continue;
}
if (AT_LEAST_N && sbn.isGroup()) {
String groupKey = sbn.getGroupKey();
String overrideGroupKey = sbn.getOverrideGroupKey();
String groupKey = overrideGroupKey != null ? overrideGroupKey : sbn.getGroupKey();
List<StatusBarNotification> sbns = grouped.get(groupKey);
if (sbns == null) {
sbns = new ArrayList<>(1);
Expand Down

0 comments on commit 540cac6

Please sign in to comment.