Mark unexpected cancellation when silenced so we do not keep hammering the logs.

This commit is contained in:
Alex Hart
2022-11-04 09:41:30 -03:00
committed by Cody Henthorne
parent b8e16353ab
commit f6f1fdb87d
3 changed files with 5 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ class DonorErrorConfigurationFragment : DSLSettingsFragment() {
secondaryButtonNoOutline(
text = DSLSettingsText.from(R.string.preferences__internal_donor_error_clear),
onClick = {
lifecycleDisposable += viewModel.clear().subscribe()
lifecycleDisposable += viewModel.clearErrorState().subscribe()
}
)
}

View File

@@ -108,10 +108,10 @@ class DonorErrorConfigurationViewModel : ViewModel() {
}
}.subscribeOn(Schedulers.io())
return clear().andThen(saveState)
return clearErrorState().andThen(saveState)
}
fun clear(): Completable {
fun clearErrorState(): Completable {
return Completable.fromAction {
synchronized(SubscriptionReceiptRequestResponseJob.MUTEX) {
SignalStore.donationsValues().setExpiredBadge(null)