Increase webtoon setting change page refresh range (closes #3088)
(cherry picked from commit 8383f4fb7b19877ffe3cd27a045b9e212f4ea6a0)
This commit is contained in:
parent
2ce01a1c86
commit
e9ada7e5fb
@ -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)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user