Avoid reader crash

This commit is contained in:
arkon 2022-01-08 15:06:44 -05:00
parent cb8120d38f
commit 544387d1a0

View File

@ -84,6 +84,8 @@ open class Pager(
override fun onTouchEvent(ev: MotionEvent): Boolean { override fun onTouchEvent(ev: MotionEvent): Boolean {
return try { return try {
super.onTouchEvent(ev) super.onTouchEvent(ev)
} catch (e: NullPointerException) {
false
} catch (e: IndexOutOfBoundsException) { } catch (e: IndexOutOfBoundsException) {
false false
} catch (e: IllegalArgumentException) { } catch (e: IllegalArgumentException) {