From bec219597130a9adf8cc0baa9d240df812e8e7a1 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Tue, 13 Feb 2024 08:03:09 +0200 Subject: [PATCH] Fix processing tap actions in reader when not resumed --- .../kotlin/org/koitharu/kotatsu/reader/ui/ReaderActivity.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderActivity.kt b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderActivity.kt index 6f2e4532f..660e68eea 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderActivity.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderActivity.kt @@ -206,11 +206,13 @@ class ReaderActivity : } override fun onGridTouch(area: TapGridArea): Boolean { - return controlDelegate.onGridTouch(area) + return isReaderResumed() && controlDelegate.onGridTouch(area) } override fun onGridLongTouch(area: TapGridArea) { - controlDelegate.onGridLongTouch(area) + if (isReaderResumed()) { + controlDelegate.onGridLongTouch(area) + } } override fun onProcessTouch(rawX: Int, rawY: Int): Boolean {