mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-07-07 14:35:29 +01:00
Update remote backup size display to indicate loading while accessing data.
This commit is contained in:
committed by
Greyson Parrelli
parent
71a588da39
commit
9f7a78bf3c
+6
@@ -906,6 +906,12 @@ private fun LazyListScope.appendBackupDetailsItems(
|
||||
|
||||
if (backupState !is BackupState.ActiveFree) {
|
||||
item {
|
||||
val sizeText = if (backupMediaSize < 0L) {
|
||||
stringResource(R.string.RemoteBackupsSettingsFragment__loading)
|
||||
} else {
|
||||
backupMediaSize.bytes.toUnitString()
|
||||
}
|
||||
|
||||
Rows.TextRow(text = {
|
||||
Column {
|
||||
Text(
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ data class RemoteBackupsSettingsState(
|
||||
val isOutOfStorageSpace: Boolean = false,
|
||||
val totalAllowedStorageSpace: String = "",
|
||||
val backupState: BackupState,
|
||||
val backupMediaSize: Long = 0,
|
||||
val backupMediaSize: Long = -1L,
|
||||
val backupsFrequency: BackupFrequency = BackupFrequency.DAILY,
|
||||
val lastBackupTimestamp: Long = 0,
|
||||
val dialog: Dialog = Dialog.NONE,
|
||||
|
||||
@@ -8150,6 +8150,8 @@
|
||||
<string name="RemoteBackupsSettingsFragment__resume_download">Resume download</string>
|
||||
<!-- Row label for backup size -->
|
||||
<string name="RemoteBackupsSettingsFragment__backup_size">Backup size</string>
|
||||
<!-- Row description for backup size when waiting for it to load in from the database -->
|
||||
<string name="RemoteBackupsSettingsFragment__loading">Loading...</string>
|
||||
<!-- Row label for backup frequency -->
|
||||
<string name="RemoteBackupsSettingsFragment__backup_frequency">Backup frequency</string>
|
||||
<!-- Toggle row label for allowing backups to occur while on cellular connection -->
|
||||
|
||||
Reference in New Issue
Block a user