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

Commit 23faae6a authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-merger
Browse files

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

Merge "Autobundle all notifications; don\'t leave the most recent one free." into nyc-dev am: e3e8eeaa am: 40711c76
am: 5bdc400b

* commit '5bdc400b':
  Autobundle all notifications; don't leave the most recent one free.

Change-Id: I96ff0174d4d8705db96c4eaa711162df8b7a0224
parents 3396fd67 5bdc400b
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) {