Skip to content

Commit

Permalink
fix: disable clicks under record audio [WPB-9619] 🍒 (#3257)
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Żerko <[email protected]>
  • Loading branch information
github-actions[bot] and Garzas authored Jul 31, 2024
1 parent bd07441 commit 7e62549
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 7e62549

Please sign in to comment.