Skip to content

Commit

Permalink
Fix typo (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
yrezgui authored Dec 8, 2023
1 parent dbaa5c7 commit cde9187
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private fun CallControls(
onCallAction: (TelecomCallAction) -> Unit,
) {
val micPermission = rememberPermissionState(permission = Manifest.permission.RECORD_AUDIO)
var showRational by remember(micPermission.status) {
var showRationale by remember(micPermission.status) {
mutableStateOf(false)
}

Expand Down Expand Up @@ -329,7 +329,7 @@ private fun CallControls(
IconButton(
onClick = {
if (micPermission.status.shouldShowRationale) {
showRational = true
showRationale = true
} else {
micPermission.launchPermissionRequest()
}
Expand Down Expand Up @@ -393,13 +393,13 @@ private fun CallControls(
}

// Show a rational dialog if user didn't accepted the permissions
if (showRational) {
if (showRationale) {
RationalMicDialog(
onResult = { request ->
if (request) {
micPermission.launchPermissionRequest()
}
showRational = false
showRationale = false
},
)
}
Expand Down

0 comments on commit cde9187

Please sign in to comment.