Fix autoscroll crashing reader when sometimes
This commit is contained in:
parent
f447b06eff
commit
8cac0fca67
1 changed files with 1 additions and 0 deletions
|
|
@ -180,6 +180,7 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
|
|||
val intervalMs = (interval * 1000).roundToLong()
|
||||
val sub = Observable.interval(intervalMs, intervalMs, TimeUnit.MILLISECONDS)
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.onBackpressureDrop()
|
||||
.subscribe {
|
||||
viewer.let { v ->
|
||||
if(v is PagerViewer) v.moveToNext()
|
||||
|
|
|
|||
Loading…
Reference in a new issue