From 7e625496bfa04552e24bda0cd89e9843634923ff Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:23:20 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20disable=20clicks=20under=20record=20audi?= =?UTF-8?q?o=20[WPB-9619]=20=F0=9F=8D=92=20(#3257)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jakub Żerko --- .../ui/home/messagecomposer/recordaudio/RecordAudioComponent.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/recordaudio/RecordAudioComponent.kt b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/recordaudio/RecordAudioComponent.kt index 73927539a33..f66d2f00205 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/recordaudio/RecordAudioComponent.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/recordaudio/RecordAudioComponent.kt @@ -28,6 +28,7 @@ import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.LaunchedEffect import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier +import androidx.compose.ui.input.pointer.pointerInput import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalLifecycleOwner import androidx.lifecycle.Lifecycle @@ -92,6 +93,7 @@ fun RecordAudioComponent( .fillMaxWidth() .fillMaxHeight() .background(colorsScheme().background) + .pointerInput(Unit) { /* Don't allow to click on elements under record area */ } ) { WireDivider(color = MaterialTheme.wireColorScheme.outline) RecordAudioButtonClose(