mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 20:18:36 +00:00
Add log lines for state refresh.
This commit is contained in:
@@ -94,6 +94,7 @@ class RemoteBackupsSettingsViewModel : ViewModel() {
|
||||
latestPurchaseId
|
||||
.flatMapLatest { id -> InAppPaymentsRepository.observeUpdates(id).asFlow() }
|
||||
.collectLatest { purchase ->
|
||||
Log.d(TAG, "Refreshing state after archive IAP update.")
|
||||
refreshState(purchase)
|
||||
}
|
||||
}
|
||||
@@ -145,6 +146,7 @@ class RemoteBackupsSettingsViewModel : ViewModel() {
|
||||
ArchiveUploadProgress.progress
|
||||
.collect { current ->
|
||||
if (previous != null && current.state == ArchiveUploadProgressState.State.None) {
|
||||
Log.d(TAG, "Refreshing state after archive upload.")
|
||||
refreshState(null)
|
||||
}
|
||||
previous = current.state
|
||||
|
||||
Reference in New Issue
Block a user