From 544387d1a08655efcc228375aeb275f9e4492c34 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 8 Jan 2022 15:06:44 -0500 Subject: [PATCH] Avoid reader crash --- .../java/eu/kanade/tachiyomi/ui/reader/viewer/pager/Pager.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/Pager.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/Pager.kt index 85fa20621c..5d6f959cc2 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/Pager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/Pager.kt @@ -84,6 +84,8 @@ open class Pager( override fun onTouchEvent(ev: MotionEvent): Boolean { return try { super.onTouchEvent(ev) + } catch (e: NullPointerException) { + false } catch (e: IndexOutOfBoundsException) { false } catch (e: IllegalArgumentException) {