Show 'calculating' while loading backup size.

This commit is contained in:
Greyson Parrelli
2025-09-03 12:59:20 -04:00
parent 2d9c572c01
commit 5294bd8a1a
2 changed files with 3 additions and 3 deletions

View File

@@ -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
)

View File

@@ -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. -->