From 35b2ce93fe6263f0087bbd2448afdd8e80b18300 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 16 Jun 2018 12:34:32 +0200 Subject: [PATCH] Update regions ocbf to latest version --- OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()); }