Skip to content

Commit d6a5321

Browse files
committed
Synchronization no longer required
1 parent 4c22ea5 commit d6a5321

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

com.unity.mobile.notifications/Runtime/Android/Plugins/com/unity/androidnotifications/UnityNotificationManager.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,10 @@ void performNotificationHousekeeping(Set<String> ids) {
395395
Log.d(TAG_UNITY, "Checking for invalid notification IDs still hanging around");
396396

397397
Set<String> invalid = findInvalidNotificationIds(ids);
398-
synchronized (UnityNotificationManager.class) {
399-
Set<String> currentIds = new HashSet<>(ids);
400-
for (String id : invalid) {
401-
currentIds.remove(id);
402-
mScheduledNotifications.remove(id);
403-
}
398+
Set<String> currentIds = new HashSet<>(ids);
399+
for (String id : invalid) {
400+
currentIds.remove(id);
401+
mScheduledNotifications.remove(id);
404402
}
405403

406404
// in case we have saved intents, clear them

0 commit comments

Comments
 (0)