kopia lustrzana https://github.com/ryukoposting/Signal-Android
Utilize switchMapSingle instead of flatMapSingle.
rodzic
ea12cde1d8
commit
aac1d0cedb
|
@ -90,7 +90,7 @@ class ManageDonationsViewModel(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
disposables += levelUpdateOperationEdges.flatMapSingle { isProcessing ->
|
disposables += levelUpdateOperationEdges.switchMapSingle { isProcessing ->
|
||||||
if (isProcessing) {
|
if (isProcessing) {
|
||||||
Single.just(ManageDonationsState.TransactionState.InTransaction)
|
Single.just(ManageDonationsState.TransactionState.InTransaction)
|
||||||
} else {
|
} else {
|
||||||
|
|
Ładowanie…
Reference in New Issue