Fix updating bug
This commit is contained in:
parent
32f12d46ef
commit
f9578f7762
1 changed files with 3 additions and 1 deletions
|
@ -184,7 +184,9 @@ public class ExploreTabFragment extends BaseOsmAndFragment implements DownloadIn
|
||||||
app.getDownloadThread().runReloadIndexFilesSilent();
|
app.getDownloadThread().runReloadIndexFilesSilent();
|
||||||
} else {
|
} else {
|
||||||
indexItem = downloadThread.getIndexes().getWorldWikivoyageItem();
|
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);
|
}).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||||
|
|
Loading…
Reference in a new issue