From 6df3c4639ba30b4350859d52ce975ae00235551e Mon Sep 17 00:00:00 2001 From: Vincent TE Date: Wed, 13 Nov 2024 15:57:04 +0100 Subject: [PATCH] fix: Use formatShortFileSize --- .../infomaniak/swisstransfer/ui/utils/HumanReadableSizeUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/utils/HumanReadableSizeUtils.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/utils/HumanReadableSizeUtils.kt index 67b2c509a..28ba5c86f 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/utils/HumanReadableSizeUtils.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/utils/HumanReadableSizeUtils.kt @@ -29,7 +29,7 @@ import com.infomaniak.swisstransfer.R object HumanReadableSizeUtils { private const val TOTAL_FILE_SIZE: Long = 50_000_000_000L - fun getHumanReadableSize(context: Context, sizeInBytes: Long): String = Formatter.formatFileSize(context, sizeInBytes) + fun getHumanReadableSize(context: Context, sizeInBytes: Long): String = Formatter.formatShortFileSize(context, sizeInBytes) private fun getFilesSizeInBytes(files: List) = files.sumOf { it.fileSize }