Merge "NoManService: More efficient notification update"
This commit is contained in:
committed by
Android (Google) Code Review
commit
eceec52894
@@ -1915,8 +1915,8 @@ public class NotificationManagerService extends SystemService {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user