mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-10 11:08:56 +01:00
Fully remove usages of RxJava from tracker classes
TODO: refactor usages to coroutines as well
This commit is contained in:
@@ -79,7 +79,7 @@ class TrackPresenter(
|
||||
|
||||
fun search(query: String, service: TrackService) {
|
||||
searchSubscription?.let { remove(it) }
|
||||
searchSubscription = service.search(query)
|
||||
searchSubscription = runAsObservable({ service.search(query) })
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribeLatestCache(
|
||||
|
||||
Reference in New Issue
Block a user