From 80d738b051f10d50fd809efa6be0289546afddb0 Mon Sep 17 00:00:00 2001 From: Gibran Chevalley Date: Mon, 19 Aug 2024 15:29:53 +0200 Subject: [PATCH] Better name boolean --- .../ui/screen/newtransfer/importfiles/ImportFilesScreen.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/ImportFilesScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/ImportFilesScreen.kt index e185cb160..1a8fd555f 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/ImportFilesScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/ImportFilesScreen.kt @@ -61,7 +61,7 @@ fun ImportFilesScreen() { ) { Column { UploadSourceChoiceBottomSheet( - showUploadSourceChoiceBottomSheet = { showUploadSourceChoiceBottomSheet }, + isBottomSheetVisible = { showUploadSourceChoiceBottomSheet }, onDismissRequest = { showUploadSourceChoiceBottomSheet = false }, ) } @@ -70,10 +70,10 @@ fun ImportFilesScreen() { @Composable private fun UploadSourceChoiceBottomSheet( - showUploadSourceChoiceBottomSheet: () -> Boolean, + isBottomSheetVisible: () -> Boolean, onDismissRequest: () -> Unit, ) { - if (showUploadSourceChoiceBottomSheet()) { + if (isBottomSheetVisible()) { SwissTransferBottomSheet( onDismissRequest = onDismissRequest, titleRes = R.string.transferUploadSourceChoiceTitle,