Fix several backup related problems.

This commit is contained in:
Alex Hart
2025-09-03 13:30:51 -03:00
committed by Greyson Parrelli
parent 8520108bb2
commit 2d9c572c01
8 changed files with 24 additions and 16 deletions

View File

@@ -63,9 +63,9 @@ class BackupStateObserver(
private val backupTierChangedNotifier = MutableSharedFlow<Unit>()
/**
* Called when the value returned by [SignalStore.backup.backupTier] changes.
* Called when the backup state likely changed.
*/
fun notifyBackupTierChanged(scope: CoroutineScope = staticScope) {
fun notifyBackupStateChanged(scope: CoroutineScope = staticScope) {
Log.d(TAG, "Notifier got a change")
scope.launch {
backupTierChangedNotifier.emit(Unit)

View File

@@ -59,6 +59,6 @@ class BackupsSettingsViewModel : ViewModel() {
StorageSyncHelper.scheduleSyncForDataChange()
}
BackupStateObserver.notifyBackupTierChanged(scope = viewModelScope)
BackupStateObserver.notifyBackupStateChanged(scope = viewModelScope)
}
}