Add log lines for state refresh.

This commit is contained in:
Alex Hart
2025-07-17 13:47:06 -03:00
parent 85ff27d830
commit 7918c3dabd

View File

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