diff --git a/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java b/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java index 9c8e59865a..e12610f1eb 100644 --- a/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java +++ b/OsmAnd/src/net/osmand/plus/render/MapRenderRepositories.java @@ -12,12 +12,12 @@ import java.io.IOException; import java.text.MessageFormat; import java.util.ArrayList; import java.util.HashSet; -import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; import net.osmand.IProgress; import net.osmand.NativeLibrary.NativeSearchResult; @@ -68,7 +68,7 @@ public class MapRenderRepositories { private final OsmandApplication context; private final static int BASEMAP_ZOOM = 11; private Handler handler; - private Map files = new LinkedHashMap(); + private Map files = new ConcurrentHashMap(); private Set nativeFiles = new HashSet(); private OsmandRenderer renderer;