mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 18:49:17 +01:00
Trying to fix a backpressure isue
This commit is contained in:
parent
79cd8c691e
commit
ed06469885
@ -57,6 +57,7 @@ public class DownloadPresenter extends BasePresenter<DownloadFragment> {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
add(pageProgressSubscription = downloadQueue.getProgressObservable()
|
add(pageProgressSubscription = downloadQueue.getProgressObservable()
|
||||||
|
.onBackpressureBuffer()
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(view::updateDownloadedPages));
|
.subscribe(view::updateDownloadedPages));
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,8 @@ public class ReaderPresenter extends BasePresenter<ReaderActivity> {
|
|||||||
next -> {},
|
next -> {},
|
||||||
error -> Timber.e("Error fetching images"));
|
error -> Timber.e("Error fetching images"));
|
||||||
|
|
||||||
startable(GET_ADJACENT_CHAPTERS, this::getAdjacentChaptersObservable);
|
startableLatestCache(GET_ADJACENT_CHAPTERS, this::getAdjacentChaptersObservable,
|
||||||
|
(view, pair) -> view.onAdjacentChapters(pair.first, pair.second));
|
||||||
|
|
||||||
startable(RETRY_IMAGES, this::getRetryPageObservable);
|
startable(RETRY_IMAGES, this::getRetryPageObservable);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user