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

Commit e0aaeaaa authored by Chris Wren's avatar Chris Wren
Browse files

registerUpdatedByApp should be synchronized

Bug: 29524139
Change-Id: I226b5f32fdab6b369451d0c64310f788944495d0
parent 1e7d8d38
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) {