From 3ed3a523f32afbe8dcebc89ac5c9918381b96038 Mon Sep 17 00:00:00 2001 From: Yacine Rezgui Date: Fri, 8 Dec 2023 08:37:21 +0300 Subject: [PATCH] Fix variable naming (#135) --- .../platform/connectivity/telecom/call/TelecomCallScreen.kt | 6 +++--- .../platform/location/permission/LocationPermissions.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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) {