Improve FileSizeFormatter.format API.

This commit is contained in:
Benoit Marty 2023-06-20 14:55:26 +02:00 committed by Benoit Marty
parent 529720079a
commit c847ac3a98
3 changed files with 23 additions and 4 deletions

View file

@ -20,5 +20,5 @@ interface FileSizeFormatter {
/**
* Formats a content size to be in the form of bytes, kilobytes, megabytes, etc.
*/
fun format(fileSize: Long): String
fun format(fileSize: Long, useShortFormat: Boolean = true): String
}