mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Fix several backup related problems.
This commit is contained in:
committed by
Greyson Parrelli
parent
8520108bb2
commit
2d9c572c01
@@ -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)
|
||||
|
||||
@@ -59,6 +59,6 @@ class BackupsSettingsViewModel : ViewModel() {
|
||||
StorageSyncHelper.scheduleSyncForDataChange()
|
||||
}
|
||||
|
||||
BackupStateObserver.notifyBackupTierChanged(scope = viewModelScope)
|
||||
BackupStateObserver.notifyBackupStateChanged(scope = viewModelScope)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user