From d8940f180d82a36c301b8a8bff155c9984f01485 Mon Sep 17 00:00:00 2001 From: Alex Sytnyk Date: Tue, 8 May 2018 11:20:58 +0300 Subject: [PATCH] Fix maps duplication --- .../net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java index 35ec2ab14c..107837df0d 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java @@ -302,7 +302,7 @@ public class ExploreTabFragment extends BaseOsmAndFragment implements DownloadIn try { for (DownloadActivityType type : types) { IndexItem item = DownloadResources.findSmallestIndexItemAt(app, latLon, type); - if (item != null && !item.isDownloaded()) { + if (item != null && !item.isDownloaded() && !neededItems.contains(item)) { neededItems.add(item); } }