Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2836775 authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Add default error handler for Interactors

parent bd6c5ca5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
import io.reactivex.rxkotlin.plusAssign
import io.reactivex.schedulers.Schedulers
import timber.log.Timber

abstract class Interactor<in Params> : Disposable {

@@ -36,7 +37,7 @@ abstract class Interactor<in Params>: Disposable {
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .doOnComplete(onComplete)
                .subscribe()
                .subscribe({}, Timber::w)
    }

    override fun dispose() {