From 8383f4fb7b19877ffe3cd27a045b9e212f4ea6a0 Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 6 May 2020 23:06:49 -0400 Subject: [PATCH] Increase webtoon setting change page refresh range (closes #3088) --- .../tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt index 6481aa680..b98a53c3b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt @@ -290,8 +290,8 @@ class WebtoonViewer(val activity: ReaderActivity, val isContinuous: Boolean = tr private fun refreshAdapter() { val position = layoutManager.findLastEndVisibleItemPosition() adapter.notifyItemRangeChanged( - max(0, position - 2), - min(position + 2, adapter.itemCount - 1) + max(0, position - 3), + min(position + 3, adapter.itemCount - 1) ) } }