mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Increase webtoon setting change page refresh range (closes #3088)
This commit is contained in:
parent
eb3fff6c51
commit
8383f4fb7b
1 changed files with 2 additions and 2 deletions
|
@ -290,8 +290,8 @@ class WebtoonViewer(val activity: ReaderActivity, val isContinuous: Boolean = tr
|
||||||
private fun refreshAdapter() {
|
private fun refreshAdapter() {
|
||||||
val position = layoutManager.findLastEndVisibleItemPosition()
|
val position = layoutManager.findLastEndVisibleItemPosition()
|
||||||
adapter.notifyItemRangeChanged(
|
adapter.notifyItemRangeChanged(
|
||||||
max(0, position - 2),
|
max(0, position - 3),
|
||||||
min(position + 2, adapter.itemCount - 1)
|
min(position + 3, adapter.itemCount - 1)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue