Improve FileSizeFormatter.format API.
This commit is contained in:
committed by
Benoit Marty
parent
ac60ef0cbe
commit
2809d6fc2f
@@ -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