diff --git a/samples/connectivity/telecom/src/main/java/com/example/platform/connectivity/telecom/call/TelecomCallScreen.kt b/samples/connectivity/telecom/src/main/java/com/example/platform/connectivity/telecom/call/TelecomCallScreen.kt index 376871a5..3f9c0c3f 100644 --- a/samples/connectivity/telecom/src/main/java/com/example/platform/connectivity/telecom/call/TelecomCallScreen.kt +++ b/samples/connectivity/telecom/src/main/java/com/example/platform/connectivity/telecom/call/TelecomCallScreen.kt @@ -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) } @@ -329,7 +329,7 @@ private fun CallControls( IconButton( onClick = { if (micPermission.status.shouldShowRationale) { - showRational = true + showRationale = true } else { micPermission.launchPermissionRequest() } @@ -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 }, ) }