We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4d63d7 + d5bcb68 commit ea201b3Copy full SHA for ea201b3
1 file changed
telecomm/java/android/telecomm/RemoteConnection.java
@@ -28,6 +28,7 @@
28
import java.util.HashSet;
29
import java.util.List;
30
import java.util.Set;
31
+import java.util.concurrent.ConcurrentHashMap;
32
33
/**
34
* RemoteConnection object used by RemoteConnectionService.
@@ -179,7 +180,8 @@ public void onConferenceableConnectionsChanged(
179
180
181
private IConnectionService mConnectionService;
182
private final String mConnectionId;
- private final Set<Listener> mListeners = new HashSet<>();
183
+ private final Set<Listener> mListeners = Collections.newSetFromMap(
184
+ new ConcurrentHashMap<Listener, Boolean>(2));
185
private final Set<RemoteConnection> mConferenceableConnections = new HashSet<>();
186
187
private int mState = Connection.State.NEW;
0 commit comments