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

Commit b6ecda86 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Prevent ConcurrentModificationException while accessing...

Merge "Prevent ConcurrentModificationException while accessing mTunableLookup." into rvc-dev am: 86a72111 am: 7bbf57a5

Change-Id: Idd6cebd4f57844216820336d50a12310b399e78f
parents 6d3a175c 7bbf57a5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -41,9 +41,9 @@ import com.android.systemui.settings.CurrentUserTracker;
import com.android.systemui.statusbar.phone.StatusBarIconController;
import com.android.systemui.util.leak.LeakDetector;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import javax.inject.Inject;
import javax.inject.Singleton;
@@ -69,7 +69,8 @@ public class TunerServiceImpl extends TunerService {
    // Map of Uris we listen on to their settings keys.
    private final ArrayMap<Uri, String> mListeningUris = new ArrayMap<>();
    // Map of settings keys to the listener.
    private final HashMap<String, Set<Tunable>> mTunableLookup = new HashMap<>();
    private final ConcurrentHashMap<String, Set<Tunable>> mTunableLookup =
            new ConcurrentHashMap<>();
    // Set of all tunables, used for leak detection.
    private final HashSet<Tunable> mTunables = LeakDetector.ENABLED ? new HashSet<>() : null;
    private final Context mContext;