Fix download status not updated properly after starting batch download (#5348)

This commit is contained in:
Ivan Iskandar
2021-06-08 22:18:56 +07:00
committed by GitHub
parent fb8aafb69f
commit 31d96c2bf0
3 changed files with 5 additions and 6 deletions
@@ -41,7 +41,7 @@ class UpdatesPresenter(
downloadManager.queue.getStatusObservable()
.observeOn(Schedulers.io())
.onBackpressureLatest()
.onBackpressureBuffer()
.observeOn(AndroidSchedulers.mainThread())
.subscribeLatestCache(
{ view, it ->
@@ -55,7 +55,7 @@ class UpdatesPresenter(
downloadManager.queue.getProgressObservable()
.observeOn(Schedulers.io())
.onBackpressureLatest()
.onBackpressureBuffer()
.observeOn(AndroidSchedulers.mainThread())
.subscribeLatestCache(UpdatesController::onChapterDownloadUpdate) { _, error ->
Timber.e(error)