Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e30e202 authored by Selim Cinek's avatar Selim Cinek Committed by Android Git Automerger
Browse files

am 2af5010a: am 36a75d6a: Merge "Fixed a crash in the notification group manager" into mnc-dev

* commit '2af5010a':
  Fixed a crash in the notification group manager
parents 7209945f 2af5010a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -78,6 +78,13 @@ public class NotificationGroupManager {
        Notification notif = sbn.getNotification();
        String groupKey = sbn.getGroupKey();
        final NotificationGroup group = mGroupMap.get(groupKey);
        if (group == null) {
            // When an app posts 2 different notifications as summary of the same group, then a
            // cancellation of the first notification removes this group.
            // This situation is not supported and we will not allow such notifications anymore in
            // the close future. See b/23676310 for reference.
            return;
        }
        if (notif.isGroupSummary()) {
            group.summary = null;
        } else {