forked from Louvorg/ReaderForSelfoss-multiplatform
debug: Debug index out of bound exception.
This commit is contained in:
@ -71,7 +71,12 @@ class ReaderActivity : AppCompatActivity(), DIAware {
|
|||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
readItem(allItems[currentItem])
|
try {
|
||||||
|
readItem(allItems[currentItem])
|
||||||
|
} catch (e: IndexOutOfBoundsException) {
|
||||||
|
e.sendSilentlyWithAcraWithName("out of bound > size = ${allItems.size} currentItem = $currentItem")
|
||||||
|
finish()
|
||||||
|
}
|
||||||
|
|
||||||
binding.pager.adapter = ScreenSlidePagerAdapter(this)
|
binding.pager.adapter = ScreenSlidePagerAdapter(this)
|
||||||
binding.pager.setCurrentItem(currentItem, false)
|
binding.pager.setCurrentItem(currentItem, false)
|
||||||
|
Reference in New Issue
Block a user