Improve FileSizeFormatter.format API.

This commit is contained in:
Benoit Marty
2023-06-20 14:55:26 +02:00
committed by Benoit Marty
parent ac60ef0cbe
commit 2809d6fc2f
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
}