Fix some issues
This commit is contained in:
parent
bf06f57ba1
commit
79a3959a9f
2 changed files with 3 additions and 1 deletions
|
@ -344,7 +344,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
|
||||||
File parent = new File(i.getPathToData()).getParentFile();
|
File parent = new File(i.getPathToData()).getParentFile();
|
||||||
if(i.getType() == LocalIndexType.SRTM_DATA){
|
if(i.getType() == LocalIndexType.SRTM_DATA){
|
||||||
parent = getMyApplication().getAppPath(IndexConstants.SRTM_INDEX_DIR);
|
parent = getMyApplication().getAppPath(IndexConstants.SRTM_INDEX_DIR);
|
||||||
} else if(i.getFileName().endsWith(IndexConstants.ROADS_INDEX_DIR)){
|
} else if(i.getFileName().endsWith(IndexConstants.BINARY_ROAD_MAP_INDEX_EXT)){
|
||||||
parent = getMyApplication().getAppPath(IndexConstants.ROADS_INDEX_DIR);
|
parent = getMyApplication().getAppPath(IndexConstants.ROADS_INDEX_DIR);
|
||||||
} else if(i.getType() == LocalIndexType.WIKI_DATA){
|
} else if(i.getType() == LocalIndexType.WIKI_DATA){
|
||||||
parent = getMyApplication().getAppPath(IndexConstants.WIKI_INDEX_DIR);
|
parent = getMyApplication().getAppPath(IndexConstants.WIKI_INDEX_DIR);
|
||||||
|
|
|
@ -594,6 +594,8 @@ public class ResourceManager {
|
||||||
if (f.getName().endsWith("-roads" + IndexConstants.BINARY_MAP_INDEX_EXT)) {
|
if (f.getName().endsWith("-roads" + IndexConstants.BINARY_MAP_INDEX_EXT)) {
|
||||||
f.renameTo(new File(roadsPath, f.getName().replace("-roads" + IndexConstants.BINARY_MAP_INDEX_EXT,
|
f.renameTo(new File(roadsPath, f.getName().replace("-roads" + IndexConstants.BINARY_MAP_INDEX_EXT,
|
||||||
IndexConstants.BINARY_ROAD_MAP_INDEX_EXT)));
|
IndexConstants.BINARY_ROAD_MAP_INDEX_EXT)));
|
||||||
|
} else if (f.getName().endsWith(IndexConstants.BINARY_ROAD_MAP_INDEX_EXT)) {
|
||||||
|
f.renameTo(new File(roadsPath, f.getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue