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

Commit 892a2534 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Autobundle all notifications; don't leave the most recent one free.

Change-Id: I0c30e34d09852673a475392411d0bb8fdc2f7aa3
Fixes: 28615503
parent 20aef8a2
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -73,14 +73,9 @@ public final class Ranker extends NotificationRankerService {
                    mUnbundledNotifications.put(sbn.getPackageName(), notificationsForPackage);

                    if (notificationsForPackage.size() >= AUTOBUNDLE_AT_COUNT) {
                        // Autobundle all but the most recently posted (not updated) notification.
                        int count = 0;
                        for (String key : notificationsForPackage) {
                            if (count < notificationsForPackage.size() - 1) {
                            notificationsToBundle.add(key);
                        }
                            count++;
                        }
                    }
                }
                if (notificationsToBundle.size() > 0) {