mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-18 09:09:42 +02:00
Drop progress emissions on backpressure
This commit is contained in:
@@ -173,6 +173,7 @@ public class PagerReaderFragment extends BaseFragment {
|
|||||||
final AtomicInteger currentValue = new AtomicInteger(-1);
|
final AtomicInteger currentValue = new AtomicInteger(-1);
|
||||||
|
|
||||||
progressSubscription = Observable.interval(75, TimeUnit.MILLISECONDS, Schedulers.newThread())
|
progressSubscription = Observable.interval(75, TimeUnit.MILLISECONDS, Schedulers.newThread())
|
||||||
|
.onBackpressureDrop()
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(tick -> {
|
.subscribe(tick -> {
|
||||||
// Refresh UI only if progress change
|
// Refresh UI only if progress change
|
||||||
|
Reference in New Issue
Block a user