Improve FileSizeFormatter.format API.
This commit is contained in:
parent
529720079a
commit
c847ac3a98
3 changed files with 23 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue