diff --git a/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java b/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java index c094a160ea..0e92245c84 100644 --- a/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java +++ b/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java @@ -97,12 +97,13 @@ public class OsmandRegions { public BinaryMapIndexReader prepareFile() throws IOException { File regions = new File("regions.ocbf"); - if (!regions.exists()) { + // internal version could be updated +// if (!regions.exists()) { InputStream is = OsmandRegions.class.getResourceAsStream("regions.ocbf"); FileOutputStream fous = new FileOutputStream(regions); Algorithms.streamCopy(is, fous); fous.close(); - } +// } return prepareFile(regions.getAbsolutePath()); }