Fix road maps selection
This commit is contained in:
parent
597c1b7bf5
commit
d6ee74ac9b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue