Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-10-20 15:20:35 +02:00
commit e701048e39

View file

@ -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) {
result.isDownloadedFromInternet = indexFileList.isDownloadedFromInternet(); try {
result.mapVersionIsIncreased = indexFileList.isIncreasedMapVersion(); while (app.isApplicationInitializing()) {
result.prepareData(indexFileList.getIndexFiles()); Thread.sleep(200);
}
result.isDownloadedFromInternet = indexFileList.isDownloadedFromInternet();
result.mapVersionIsIncreased = indexFileList.isIncreasedMapVersion();
result.prepareData(indexFileList.getIndexFiles());
} catch (Exception e) {
}
} }
return result; return result;
} }