Fix maps duplication

This commit is contained in:
Alex Sytnyk 2018-05-08 11:20:58 +03:00
parent f1ec563dbb
commit d8940f180d

View file

@ -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);
}
}