From d6ee74ac9bb3a772ddce61c889445f8f2c17e2e4 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Sat, 7 Nov 2015 21:43:34 +0300 Subject: [PATCH] Fix road maps selection --- OsmAnd/src/net/osmand/plus/views/DownloadedRegionsLayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/DownloadedRegionsLayer.java b/OsmAnd/src/net/osmand/plus/views/DownloadedRegionsLayer.java index 9583928b3f..050f765b29 100644 --- a/OsmAnd/src/net/osmand/plus/views/DownloadedRegionsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/DownloadedRegionsLayer.java @@ -207,7 +207,7 @@ public class DownloadedRegionsLayer extends OsmandMapLayer implements IContextMe private boolean checkIfObjectDownloaded(String downloadName) { final String regionName = Algorithms.capitalizeFirstLetterAndLowercase(downloadName) + IndexConstants.BINARY_MAP_INDEX_EXT; - final String roadsRegionName = Algorithms.capitalizeFirstLetterAndLowercase(downloadName) + "-roads" + final String roadsRegionName = Algorithms.capitalizeFirstLetterAndLowercase(downloadName) + ".road" + IndexConstants.BINARY_MAP_INDEX_EXT; return rm.getIndexFileNames().containsKey(regionName) || rm.getIndexFileNames().containsKey(roadsRegionName); }