From 690684bacffecee0f4e6b0bff0e6c67093d579e1 Mon Sep 17 00:00:00 2001 From: inorichi Date: Wed, 6 Jan 2016 22:57:39 +0100 Subject: [PATCH] Drop progress emissions on backpressure --- .../mangafeed/ui/reader/viewer/common/PagerReaderFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/reader/viewer/common/PagerReaderFragment.java b/app/src/main/java/eu/kanade/mangafeed/ui/reader/viewer/common/PagerReaderFragment.java index 37b36ab44e..bcdad34e1f 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/reader/viewer/common/PagerReaderFragment.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/reader/viewer/common/PagerReaderFragment.java @@ -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