diff --git a/packages/SystemUI/src/com/android/systemui/tuner/TunerServiceImpl.java b/packages/SystemUI/src/com/android/systemui/tuner/TunerServiceImpl.java index 333248e33d55b..36901337da3bf 100644 --- a/packages/SystemUI/src/com/android/systemui/tuner/TunerServiceImpl.java +++ b/packages/SystemUI/src/com/android/systemui/tuner/TunerServiceImpl.java @@ -56,6 +56,7 @@ import lineageos.providers.LineageSettings; import java.util.HashSet; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.CopyOnWriteArraySet; import javax.inject.Inject; @@ -320,7 +321,7 @@ public class TunerServiceImpl extends TunerService { private void addTunable(Tunable tunable, String key) { if (!mTunableLookup.containsKey(key)) { - mTunableLookup.put(key, new ArraySet()); + mTunableLookup.put(key, new CopyOnWriteArraySet()); } mTunableLookup.get(key).add(tunable); if (LeakDetector.ENABLED) {