Fix updating bug

This commit is contained in:
Alex Sytnyk 2018-04-27 12:07:13 +03:00
parent 32f12d46ef
commit f9578f7762

View file

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