mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 01:21:52 +01:00
Crash fix
This commit is contained in:
parent
876831480a
commit
6cf84256fe
@ -85,9 +85,9 @@ class WebtoonReader : BaseReader() {
|
||||
recycler.adapter = adapter
|
||||
recycler.addOnScrollListener(object : RecyclerView.OnScrollListener() {
|
||||
override fun onScrolled(recyclerView: RecyclerView?, dx: Int, dy: Int) {
|
||||
val page = layoutManager.findLastVisibleItemPosition()
|
||||
if (page != currentPage) {
|
||||
onPageChanged(page)
|
||||
val index = layoutManager.findLastVisibleItemPosition()
|
||||
if (index != currentPage) {
|
||||
pages.getOrNull(index)?.let { onPageChanged(index) }
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user