fix crashes related to missing Rx error handler (#1561)
This commit is contained in:
parent
7bccf23f69
commit
d6ec5ca8d3
3 changed files with 12 additions and 3 deletions
|
|
@ -59,6 +59,7 @@ class ConversationsViewModel @Inject constructor(
|
|||
}
|
||||
.subscribeOn(Schedulers.io())
|
||||
.doOnError { t -> Log.w("ConversationViewModel", "Failed to favourite conversation", t) }
|
||||
.onErrorReturnItem(0)
|
||||
.subscribe()
|
||||
.addTo(disposables)
|
||||
}
|
||||
|
|
@ -77,6 +78,7 @@ class ConversationsViewModel @Inject constructor(
|
|||
}
|
||||
.subscribeOn(Schedulers.io())
|
||||
.doOnError { t -> Log.w("ConversationViewModel", "Failed to favourite conversation", t) }
|
||||
.onErrorReturnItem(0)
|
||||
.subscribe()
|
||||
.addTo(disposables)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue