mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 20:18:36 +00:00
Do not refresh on concurrent matching upload states.
This commit is contained in:
@@ -145,7 +145,7 @@ class RemoteBackupsSettingsViewModel : ViewModel() {
|
||||
var previous: ArchiveUploadProgressState.State? = null
|
||||
ArchiveUploadProgress.progress
|
||||
.collect { current ->
|
||||
if (previous != null && current.state == ArchiveUploadProgressState.State.None) {
|
||||
if (previous != null && previous != current.state && current.state == ArchiveUploadProgressState.State.None) {
|
||||
Log.d(TAG, "Refreshing state after archive upload.")
|
||||
refreshState(null)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user