Instead of removing the old notification and inserting the
updated notification afterwards, replace the old notification
in-place.
Change-Id: I88962fd2452de191c1d63c142719194282568dcc
mNotificationList.add(r);
mUsageStats.registerPostedByApp(r);
} else {
- old = mNotificationList.remove(index);
- mNotificationList.add(index, r);
+ old = mNotificationList.get(index);
+ mNotificationList.set(index, r);
mUsageStats.registerUpdatedByApp(r);
// Make sure we don't lose the foreground service state.
if (old != null) {