Skip to content

Commit

Permalink
Fix variable naming (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
yrezgui authored Dec 8, 2023
1 parent cde9187 commit 3ed3a52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@ private fun CallControls(
}
}

// Show a rational dialog if user didn't accepted the permissions
// Show a rationale dialog if user didn't accepted the permissions
if (showRationale) {
RationalMicDialog(
RationaleMicDialog(
onResult = { request ->
if (request) {
micPermission.launchPermissionRequest()
Expand Down Expand Up @@ -434,7 +434,7 @@ private fun getEndpointIcon(type: @CallEndpointCompat.Companion.EndpointType Int
}

@Composable
private fun RationalMicDialog(onResult: (Boolean) -> Unit) {
private fun RationaleMicDialog(onResult: (Boolean) -> Unit) {
AlertDialog(
onDismissRequest = { onResult(false) },
confirmButton = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fun PermissionRequestButton(isGranted: Boolean, title: String, onClick: () -> Un
}

/**
* Simple AlertDialog that displays the given rational state
* Simple AlertDialog that displays the given rationale state
*/
@Composable
fun PermissionRationaleDialog(rationaleState: RationaleState) {
Expand Down

0 comments on commit 3ed3a52

Please sign in to comment.