diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/transfer/TransferItemList.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/transfer/TransferItemList.kt index ab04d9ee4..6cec38fc2 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/transfer/TransferItemList.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/transfer/TransferItemList.kt @@ -47,11 +47,11 @@ fun TransferItemList( ) { val selectedTransferUuid = getSelectedTransferUuid() + val itemShape = CustomShapes.SMALL val titleRes = when (direction) { TransferDirection.SENT -> R.string.sentFilesTitle TransferDirection.RECEIVED -> R.string.receivedFilesTitle } - val itemShape = CustomShapes.SMALL LazyColumn( modifier = modifier, diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/received/ReceivedScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/received/ReceivedScreen.kt index 2b0a985c5..2f7c9eaf4 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/received/ReceivedScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/received/ReceivedScreen.kt @@ -52,7 +52,7 @@ fun ReceivedScreen( navigateToDetails = navigateToDetails, getSelectedTransferUuid = getSelectedTransferUuid, getTransfers = { transfers!! }, - onSwiped = transfersViewModel::deleteSwipedTransfer, + onSwiped = transfersViewModel::deleteTransfer, ) } } diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/sent/SentScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/sent/SentScreen.kt index 2d8b3d08e..a4a541c93 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/sent/SentScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/sent/SentScreen.kt @@ -59,7 +59,7 @@ fun SentScreen( navigateToDetails = navigateToDetails, getSelectedTransferUuid = getSelectedTransferUuid, getTransfers = { transfers!! }, - onSwiped = transfersViewModel::deleteSwipedTransfer, + onSwiped = transfersViewModel::deleteTransfer, ) } } diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transfers/TransfersViewModel.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transfers/TransfersViewModel.kt index 10deeaea2..c48eb7160 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transfers/TransfersViewModel.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transfers/TransfersViewModel.kt @@ -59,7 +59,7 @@ class TransfersViewModel @Inject constructor( } } - fun deleteSwipedTransfer(transferUuid: String) { + fun deleteTransfer(transferUuid: String) { viewModelScope.launch(ioDispatcher) { runCatching { transferManager.deleteTransfer(transferUuid)