Improve FileSizeFormatter.format API.
This commit is contained in:
parent
529720079a
commit
c847ac3a98
3 changed files with 23 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ package io.element.android.libraries.androidtools.test
|
|||
import io.element.android.libraries.androidtools.api.FileSizeFormatter
|
||||
|
||||
class FakeFileSizeFormatter : FileSizeFormatter {
|
||||
override fun format(fileSize: Long): String {
|
||||
override fun format(fileSize: Long, useShortFormat: Boolean): String {
|
||||
return "$fileSize Bytes"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue