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

Commit dbbd3a1a authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Catch exceptions when grouping sparse groups

This is a temporary fix to prevent the system from crashing when grouping sparse groups. A more permanent fix will be implemented in a future CL.

Bug: 366204575
Flag: com.android.server.notification.notification_force_group_singletons
Test: build
Change-Id: I07d52b437cde9746283725205d91de50896a408b
parent 1f4ae033
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -757,8 +757,12 @@ public class GroupHelper {

            // scenario 3: sparse/singleton groups
            if (Flags.notificationForceGroupSingletons()) {
                try {
                    groupSparseGroups(record, notificationList, summaryByGroupKey, sectioner,
                        fullAggregateGroupKey);
                } catch (Throwable e) {
                    Slog.wtf(TAG, "Failed to group sparse groups", e);
                }
            }
        }
    }