mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Calculate remote backup media quota usage locally.
This commit is contained in:
committed by
Greyson Parrelli
parent
efa9dd6ec3
commit
882a11c420
@@ -112,6 +112,10 @@ class ByteSize(val bytes: Long) {
|
||||
return ByteSize(this.inWholeBytes - other.inWholeBytes)
|
||||
}
|
||||
|
||||
operator fun times(other: Long): ByteSize {
|
||||
return ByteSize(this.inWholeBytes * other)
|
||||
}
|
||||
|
||||
enum class Size(val label: String) {
|
||||
BYTE("B"),
|
||||
KIBIBYTE("KB"),
|
||||
|
||||
Reference in New Issue
Block a user