mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-27 02:07:42 +00:00
SES-2394 fix mic button enabled
This commit is contained in:
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.onUp` and tap the button then the logged output order is onUp and THEN onPress!
|
||||||
microphoneButton.setOnTouchListener(object : OnTouchListener {
|
microphoneButton.setOnTouchListener(object : OnTouchListener {
|
||||||
override fun onTouch(v: View, event: MotionEvent): Boolean {
|
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
|
// We only handle single finger touch events so just consume the event and bail if there are more
|
||||||
if (event.pointerCount > 1) return true
|
if (event.pointerCount > 1) return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user