mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Show 'calculating' while loading backup size.
This commit is contained in:
@@ -897,7 +897,7 @@ private fun LazyListScope.appendBackupDetailsItems(
|
||||
if (backupState !is BackupState.ActiveFree) {
|
||||
item {
|
||||
val sizeText = if (backupMediaSize < 0L) {
|
||||
stringResource(R.string.RemoteBackupsSettingsFragment__loading)
|
||||
stringResource(R.string.RemoteBackupsSettingsFragment__calculating)
|
||||
} else {
|
||||
backupMediaSize.bytes.toUnitString()
|
||||
}
|
||||
@@ -910,7 +910,7 @@ private fun LazyListScope.appendBackupDetailsItems(
|
||||
color = MaterialTheme.colorScheme.onSurface
|
||||
)
|
||||
Text(
|
||||
text = backupMediaSize.bytes.toUnitString(),
|
||||
text = sizeText,
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant
|
||||
)
|
||||
|
||||
@@ -8139,7 +8139,7 @@
|
||||
<!-- 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>
|
||||
<string name="RemoteBackupsSettingsFragment__calculating">Calculating…</string>
|
||||
<!-- Row label for backup frequency -->
|
||||
<string name="RemoteBackupsSettingsFragment__backup_frequency">Backup frequency</string>
|
||||
<!-- The body of a pop-up dialog explaining that backups are performed every day. -->
|
||||
|
||||
Reference in New Issue
Block a user