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

Commit ee21a7a0 authored by Chris Wren's avatar Chris Wren Committed by android-build-merger
Browse files

Merge \\\"registerUpdatedByApp should be synchronized\\\" into nyc-dev am:...

Merge \\\"registerUpdatedByApp should be synchronized\\\" into nyc-dev am: 7595478f am: 732053f9
am: 7125801e

Change-Id: I3ffda71016b3c7b49614697eb3353bf702577e86
parents e55a3669 7125801e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -146,7 +146,8 @@ public class NotificationUsageStats {
    /**
     * Called when a notification has been updated.
     */
    public void registerUpdatedByApp(NotificationRecord notification, NotificationRecord old) {
    public synchronized void registerUpdatedByApp(NotificationRecord notification,
            NotificationRecord old) {
        notification.stats.updateFrom(old.stats);
        AggregatedStats[] aggregatedStatsArray = getAggregatedStatsLocked(notification);
        for (AggregatedStats stats : aggregatedStatsArray) {