Fix typo in comment.

This commit is contained in:
Benoit Marty 2023-06-23 15:13:47 +02:00 committed by Benoit Marty
parent 5b4069d9f4
commit 4297cfac24

View file

@ -30,7 +30,7 @@ class AndroidFileSizeFormatter @Inject constructor(
@ApplicationContext private val context: Context,
) : FileSizeFormatter {
override fun format(fileSize: Long, useShortFormat: Boolean): String {
// Since Android O, the system considers that 1ko = 1000 bytes instead of 1024 bytes.
// Since Android O, the system considers that 1kB = 1000 bytes instead of 1024 bytes.
// We want to avoid that.
val normalizedSize = if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.N) {
fileSize