From f9578f77621daa73ab867d0101a887668a419929 Mon Sep 17 00:00:00 2001 From: Alex Sytnyk Date: Fri, 27 Apr 2018 12:07:13 +0300 Subject: [PATCH] Fix updating bug --- .../osmand/plus/wikivoyage/explore/ExploreTabFragment.java | 4 +++- 1 file changed, 3 insertions(+), 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 fb00d3f739..1ca6f0a3d8 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java @@ -184,7 +184,9 @@ public class ExploreTabFragment extends BaseOsmAndFragment implements DownloadIn app.getDownloadThread().runReloadIndexFilesSilent(); } else { indexItem = downloadThread.getIndexes().getWorldWikivoyageItem(); - addDownloadUpdateCard(false); + IndexItem current = downloadThread.getCurrentDownloadingItem(); + boolean loadingInProgress = current != null && indexItem != null && current == indexItem; + addDownloadUpdateCard(loadingInProgress); } } }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);