From 2574432e8e6d9d186486723f8d18d89f4b9c92f0 Mon Sep 17 00:00:00 2001 From: Vincent TE Date: Thu, 14 Nov 2024 11:31:43 +0100 Subject: [PATCH] fix: Temporarily removed the remember to display the correct files count --- .../ui/screen/main/transferdetails/components/TransferInfo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transferdetails/components/TransferInfo.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transferdetails/components/TransferInfo.kt index 32738400d..838002d61 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transferdetails/components/TransferInfo.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/transferdetails/components/TransferInfo.kt @@ -49,7 +49,7 @@ import com.infomaniak.swisstransfer.ui.utils.PreviewLightAndDark @Composable fun TransferInfo(transfer: TransferUi) { - val filesCount by remember { derivedStateOf { transfer.files.count() } } + val filesCount = transfer.files.count() val downloadedCount by remember { derivedStateOf { transfer.downloadLimit - transfer.downloadLeft } } Row(verticalAlignment = Alignment.CenterVertically) {