mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-27 08:16:36 +03:00
Drop progress emissions on backpressure
This commit is contained in:
parent
d0089e3f5e
commit
690684bacf
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ public class PagerReaderFragment extends BaseFragment {
|
|||
final AtomicInteger currentValue = new AtomicInteger(-1);
|
||||
|
||||
progressSubscription = Observable.interval(75, TimeUnit.MILLISECONDS, Schedulers.newThread())
|
||||
.onBackpressureDrop()
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(tick -> {
|
||||
// Refresh UI only if progress change
|
||||
|
|
Loading…
Reference in a new issue