mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Detect storage space issues during restore.
This commit is contained in:
committed by
Greyson Parrelli
parent
b4472833b8
commit
7f1a866e79
@@ -95,6 +95,10 @@ class ByteSize(val bytes: Long) {
|
||||
return "${formatter.format(size)}${if (spaced) " " else ""}${unit.label}"
|
||||
}
|
||||
|
||||
operator fun compareTo(other: ByteSize): Int {
|
||||
return bytes.compareTo(other.bytes)
|
||||
}
|
||||
|
||||
enum class Size(val label: String) {
|
||||
BYTE("B"),
|
||||
KIBIBYTE("KB"),
|
||||
|
||||
Reference in New Issue
Block a user