From 892a253432c550b2f6b1f12e1ca5063fd1ed3854 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Fri, 6 May 2016 09:31:53 -0400 Subject: [PATCH] Autobundle all notifications; don't leave the most recent one free. Change-Id: I0c30e34d09852673a475392411d0bb8fdc2f7aa3 Fixes: 28615503 --- .../ExtServices/src/android/ext/services/notification/Ranker.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/ExtServices/src/android/ext/services/notification/Ranker.java b/packages/ExtServices/src/android/ext/services/notification/Ranker.java index f3ce35566cc0..d43f07627375 100644 --- a/packages/ExtServices/src/android/ext/services/notification/Ranker.java +++ b/packages/ExtServices/src/android/ext/services/notification/Ranker.java @@ -73,13 +73,8 @@ 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++; + notificationsToBundle.add(key); } } } -- 2.11.0