Fix download
This commit is contained in:
parent
52c6fc5da5
commit
a00a477415
2 changed files with 11 additions and 2 deletions
|
@ -281,11 +281,16 @@ public class DownloadIndexesThread {
|
||||||
}
|
}
|
||||||
// reindex vector maps all at one time
|
// reindex vector maps all at one time
|
||||||
ResourceManager manager = app.getResourceManager();
|
ResourceManager manager = app.getResourceManager();
|
||||||
manager.indexVoiceFiles(this);
|
|
||||||
List<String> warnings = new ArrayList<String>();
|
List<String> warnings = new ArrayList<String>();
|
||||||
|
manager.indexVoiceFiles(this);
|
||||||
if (vectorMapsToReindex) {
|
if (vectorMapsToReindex) {
|
||||||
warnings = manager.indexingMaps(this);
|
warnings = manager.indexingMaps(this);
|
||||||
}
|
}
|
||||||
|
List<String> wns = manager.indexAdditionalMaps(this);
|
||||||
|
if(wns != null) {
|
||||||
|
warnings.addAll(wns);
|
||||||
|
}
|
||||||
|
|
||||||
if (!warnings.isEmpty()) {
|
if (!warnings.isEmpty()) {
|
||||||
return warnings.get(0);
|
return warnings.get(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -415,11 +415,15 @@ public class ResourceManager {
|
||||||
warnings.addAll(indexingMaps(progress));
|
warnings.addAll(indexingMaps(progress));
|
||||||
warnings.addAll(indexVoiceFiles(progress));
|
warnings.addAll(indexVoiceFiles(progress));
|
||||||
warnings.addAll(OsmandPlugin.onIndexingFiles(progress));
|
warnings.addAll(OsmandPlugin.onIndexingFiles(progress));
|
||||||
warnings.addAll(context.getAppCustomization().onIndexingFiles(progress, indexFileNames));
|
warnings.addAll(indexAdditionalMaps(progress));
|
||||||
|
|
||||||
return warnings;
|
return warnings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<String> indexAdditionalMaps(IProgress progress) {
|
||||||
|
return context.getAppCustomization().onIndexingFiles(progress, indexFileNames);
|
||||||
|
}
|
||||||
|
|
||||||
private void indexRegionsBoundaries(IProgress progress, boolean overwrite) {
|
private void indexRegionsBoundaries(IProgress progress, boolean overwrite) {
|
||||||
try {
|
try {
|
||||||
File file = context.getAppPath("regions.ocbf");
|
File file = context.getAppPath("regions.ocbf");
|
||||||
|
|
Loading…
Reference in a new issue