Improve FileSizeFormatter.format API.
This commit is contained in:
committed by
Benoit Marty
parent
529720079a
commit
c847ac3a98
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user