diff options
| author | 2016-05-09 18:04:21 +0000 | |
|---|---|---|
| committer | 2016-05-09 18:04:22 +0000 | |
| commit | e3e8eeaa7f604eb1e1a815a8cc438476aa4447b3 (patch) | |
| tree | 13731939d652511d43c9c883263bd751fb690243 | |
| parent | 0b0ad39b13be289a4e37fcabb77946aa6818caec (diff) | |
| parent | 892a253432c550b2f6b1f12e1ca5063fd1ed3854 (diff) | |
Merge "Autobundle all notifications; don't leave the most recent one free." into nyc-dev
| -rw-r--r-- | packages/ExtServices/src/android/ext/services/notification/Ranker.java | 7 |
1 files changed, 1 insertions, 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); } } } |