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 3f9c0c3f..c8ba403f 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 @@ -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() @@ -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 = { diff --git a/samples/location/src/main/java/com/example/platform/location/permission/LocationPermissions.kt b/samples/location/src/main/java/com/example/platform/location/permission/LocationPermissions.kt index ea0d3f1d..eb7b8bfa 100644 --- a/samples/location/src/main/java/com/example/platform/location/permission/LocationPermissions.kt +++ b/samples/location/src/main/java/com/example/platform/location/permission/LocationPermissions.kt @@ -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) {