Merge pull request #9472 from osmandapp/FixWikiStillSuggested

Fix "Wikipedia still suggested to download after downloading one map"
This commit is contained in:
Vitaliy 2020-07-17 16:26:12 +03:00 committed by GitHub
commit 2e1df21c87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,8 @@ public class WikipediaPoiMenu {
IndexItem currentDownloadingItem = downloadThread.getCurrentDownloadingItem();
int currentDownloadingProgress = downloadThread.getCurrentDownloadingItemProgress();
List<IndexItem> wikiIndexes = DownloadResources.findIndexItemsAt(
app, mapActivity.getMapLocation(), DownloadActivityType.WIKIPEDIA_FILE);
app, mapActivity.getMapLocation(), DownloadActivityType.WIKIPEDIA_FILE,
false, -1, true);
if (wikiIndexes.size() > 0) {
adapter.addItem(new ContextMenuItem.ItemBuilder()
.setTitleId(R.string.shared_string_download_map, mapActivity)