From 4bbdc79415abe217bbe4b1df629f14ecbffd1723 Mon Sep 17 00:00:00 2001 From: bemusementpark Date: Fri, 12 Jul 2024 13:34:44 +0930 Subject: [PATCH] SES-2394 fix mic button enabled --- .../thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt index 70949e8343..8e38c7d38e 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt @@ -102,6 +102,7 @@ class InputBar @JvmOverloads constructor( // `microphoneButton.onUp` and tap the button then the logged output order is onUp and THEN onPress! microphoneButton.setOnTouchListener(object : OnTouchListener { override fun onTouch(v: View, event: MotionEvent): Boolean { + if (!microphoneButton.snIsEnabled) return true // We only handle single finger touch events so just consume the event and bail if there are more if (event.pointerCount > 1) return true