Trying to fix a backpressure isue
This commit is contained in:
@@ -57,6 +57,7 @@ public class DownloadPresenter extends BasePresenter<DownloadFragment> {
|
||||
}));
|
||||
|
||||
add(pageProgressSubscription = downloadQueue.getProgressObservable()
|
||||
.onBackpressureBuffer()
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(view::updateDownloadedPages));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user