SES-2394 fix mic button enabled

pull/1451/head
bemusementpark 10 months ago
parent 4c395cb71e
commit 4bbdc79415

@ -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

Loading…
Cancel
Save