Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Trying to fix a backpressure isue

Cette révision appartient à :
inorichi 2016-02-05 15:42:53 +01:00
Parent 79cd8c691e
révision ed06469885
2 fichiers modifiés avec 3 ajouts et 1 suppressions

Voir le fichier

@ -57,6 +57,7 @@ public class DownloadPresenter extends BasePresenter<DownloadFragment> {
}));
add(pageProgressSubscription = downloadQueue.getProgressObservable()
.onBackpressureBuffer()
.observeOn(AndroidSchedulers.mainThread())
.subscribe(view::updateDownloadedPages));
}

Voir le fichier

@ -79,7 +79,8 @@ public class ReaderPresenter extends BasePresenter<ReaderActivity> {
next -> {},
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);