Fix empty downloads list
This commit is contained in:
parent
3f077a70dc
commit
8f4bf41781
1 changed files with 9 additions and 3 deletions
|
@ -250,9 +250,15 @@ public class DownloadIndexesThread {
|
||||||
DownloadResources result = new DownloadResources(app);
|
DownloadResources result = new DownloadResources(app);
|
||||||
DownloadOsmandIndexesHelper.IndexFileList indexFileList = DownloadOsmandIndexesHelper.getIndexesList(ctx);
|
DownloadOsmandIndexesHelper.IndexFileList indexFileList = DownloadOsmandIndexesHelper.getIndexesList(ctx);
|
||||||
if (indexFileList != null) {
|
if (indexFileList != null) {
|
||||||
|
try {
|
||||||
|
while (app.isApplicationInitializing()) {
|
||||||
|
Thread.sleep(200);
|
||||||
|
}
|
||||||
result.isDownloadedFromInternet = indexFileList.isDownloadedFromInternet();
|
result.isDownloadedFromInternet = indexFileList.isDownloadedFromInternet();
|
||||||
result.mapVersionIsIncreased = indexFileList.isIncreasedMapVersion();
|
result.mapVersionIsIncreased = indexFileList.isIncreasedMapVersion();
|
||||||
result.prepareData(indexFileList.getIndexFiles());
|
result.prepareData(indexFileList.getIndexFiles());
|
||||||
|
} catch (Exception e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue