Fix retry issue with payment processing.

This commit is contained in:
Alex Hart
2021-11-01 09:42:50 -03:00
committed by Greyson Parrelli
parent cf9b91ebd4
commit b0788f7307
7 changed files with 51 additions and 42 deletions

View File

@@ -0,0 +1,15 @@
package org.thoughtcrime.securesms.subscription
import io.reactivex.rxjava3.core.Observable
import io.reactivex.rxjava3.subjects.BehaviorSubject
object LevelUpdate {
private var isProcessingSubject = BehaviorSubject.createDefault(false)
var isProcessing: Observable<Boolean> = isProcessingSubject
fun updateProcessingState(isProcessing: Boolean) {
isProcessingSubject.onNext(isProcessing)
}
}