Avoid reader crash
(cherry picked from commit 544387d1a08655efcc228375aeb275f9e4492c34)
This commit is contained in:
parent
afb6ca1b5c
commit
a6210baf70
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user