mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
adapt loop iteration according to ConcurrentHashMap
This commit is contained in:
@@ -483,11 +483,12 @@ public class MapDataManager implements DcEventCenter.DcEventDelegate, GenerateIn
|
||||
}
|
||||
|
||||
private Feature getFeatureWithId(String id) {
|
||||
for (String key : featureCollections.keySet()) {
|
||||
for (Map.Entry<String, LinkedList<Feature>> e : featureCollections.entrySet()) {
|
||||
String key = e.getKey();
|
||||
if (key.startsWith(LINE_FEATURE_LIST)) {
|
||||
continue;
|
||||
}
|
||||
LinkedList<Feature> featureCollection = featureCollections.get(key);
|
||||
LinkedList<Feature> featureCollection = e.getValue();
|
||||
for (Feature f : featureCollection) {
|
||||
if (f.id().equals(id)) {
|
||||
return f;
|
||||
|
||||
Reference in New Issue
Block a user