use of de.westnordost.streetcomplete.data.osm.download.OsmQuestDownload in project StreetComplete by westnordost.
the class QuestDownload method downloadQuestTypes.
private void downloadQuestTypes(BoundingBox bbox, List<QuestType> questTypes, Set<LatLon> notesPositions) {
for (QuestType questType : questTypes) {
if (cancelState.get())
break;
if (maxQuestTypes != null && downloadedQuestTypes >= maxQuestTypes)
break;
if (questType instanceof OsmElementQuestType) {
OsmQuestDownload questDownload = questDownloadProvider.get();
questDownload.setQuestListener(questListener);
if (questDownload.download((OsmElementQuestType) questType, bbox, notesPositions)) {
downloadedTilesDao.put(tiles, questType.getClass().getSimpleName());
}
downloadedQuestTypes++;
dispatchProgress();
}
}
}
Aggregations