diff --git a/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java b/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java index d0bd945a9d..1ce224e709 100644 --- a/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java +++ b/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java @@ -119,7 +119,9 @@ public class RegionAddressRepositoryBinary implements RegionAddressRepository { @Override public synchronized void addCityToPreloadedList(City city) { - cities.put(city.getId(), city); + if (!cities.containsKey(id)) { + cities.put(city.getId(), city); + } } @Override