diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/CrossCircleButton.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/CrossCircleButton.kt index d5022f0d5..1f910edef 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/CrossCircleButton.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/CrossCircleButton.kt @@ -57,7 +57,7 @@ fun BoxScope.CrossCircleButton(onClick: (() -> Unit)?, size: Dp = 48.dp) { modifier = Modifier.size(Margin.Small), imageVector = AppImages.AppIcons.CrossThick, contentDescription = stringResource(R.string.contentDescriptionButtonRemove), - tint = Color.White + tint = Color.White, ) } } diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/FilePreview.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/FilePreview.kt index 0bb008c30..3040a4b0c 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/FilePreview.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/FilePreview.kt @@ -44,7 +44,7 @@ import com.infomaniak.swisstransfer.ui.utils.hasPreview fun FilePreview( file: FileUiItem, circleColor: Color, - circleSize: Dp + circleSize: Dp, ) { var displayPreview by rememberSaveable { mutableStateOf(file.hasPreview) } @@ -80,7 +80,7 @@ private fun FileIcon(fileType: FileType, color: Color, circleSize: Dp) { modifier = Modifier.size(circleSize / 2), imageVector = fileType.icon, contentDescription = null, - tint = fileType.color(LocalIsDarkMode.current) + tint = fileType.color(LocalIsDarkMode.current), ) } } diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferCard.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferCard.kt index d5e4f47ec..ad4aee559 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferCard.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferCard.kt @@ -40,7 +40,7 @@ fun SwissTransferCard(modifier: Modifier = Modifier, content: @Composable Column modifier = modifier, shape = Shapes.medium, colors = CardDefaults.cardColors(contentColor = SwissTransferTheme.colors.secondaryTextColor), - content = content + content = content, ) } 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 ace5600c9..5226798c3 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 @@ -37,7 +37,7 @@ import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme import com.infomaniak.swisstransfer.ui.utils.PreviewLargeWindow import com.infomaniak.swisstransfer.ui.utils.PreviewSmallWindow -private const val TOTAL_FILE_SIZE: Long = 50_000_000_000 +private const val TOTAL_FILE_SIZE: Long = 50_000_000_000L @Composable fun ImportFilesScreen( diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/SelectedFilesCard.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/SelectedFilesCard.kt index e52d9b55d..f40b31e9e 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/SelectedFilesCard.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/SelectedFilesCard.kt @@ -53,7 +53,7 @@ fun SelectedFilesCard( files: () -> List, formattedSizeWithUnits: () -> String, showUploadSourceChoiceBottomSheet: () -> Unit, - removeFileByUid: (uid: String) -> Unit + removeFileByUid: (uid: String) -> Unit, ) { val fileCount by remember { derivedStateOf { files().count() } } @@ -81,14 +81,14 @@ fun SelectedFilesCard( imageVector = AppImages.AppIcons.ChevronRightSmall, contentDescription = null, modifier = Modifier.padding(Margin.Medium), - tint = SwissTransferTheme.colors.iconColor + tint = SwissTransferTheme.colors.iconColor, ) } LazyRow( Modifier.fillMaxWidth(), contentPadding = PaddingValues(start = Margin.Medium, end = Margin.Medium, bottom = Margin.Medium), - horizontalArrangement = Arrangement.spacedBy(Margin.Medium) + horizontalArrangement = Arrangement.spacedBy(Margin.Medium), ) { item(key = TransferLazyRowKey(TransferLazyRowKey.Type.ADD_BUTTON)) { AddNewFileButton(Modifier.animateItem()) { showUploadSourceChoiceBottomSheet() } @@ -102,7 +102,7 @@ fun SelectedFilesCard( modifier = Modifier.animateItem(), file = file, smallFileTileSize = SmallFileTileSize.LARGE, - onRemove = { removeFileByUid(file.uid) } + onRemove = { removeFileByUid(file.uid) }, ) } } @@ -150,7 +150,7 @@ private fun AddNewFileButton(modifier: Modifier = Modifier, onClick: () -> Unit) @Parcelize private data class TransferLazyRowKey( val type: Type, - val fileUid: String? = null + val fileUid: String? = null, ) : Parcelable { enum class Type { ADD_BUTTON, FILE