small fix
This commit is contained in:
parent
52a9b563c0
commit
44a6e79c09
|
|
@ -28,7 +28,6 @@ import rx.Observable;
|
|||
import rx.Single;
|
||||
import rx.Subscription;
|
||||
import rx.android.schedulers.AndroidSchedulers;
|
||||
import rx.exceptions.OnErrorThrowable;
|
||||
import rx.functions.Action0;
|
||||
import rx.functions.Action1;
|
||||
import rx.functions.Actions;
|
||||
|
|
@ -208,7 +207,6 @@ public class BaseLifecycleBindable implements LifecycleBindable {
|
|||
return untilDestroy(single, onSuccessAction, getActionThrowableForAssertion(codePoint, UNTIL_DESTROY_METHOD));
|
||||
}
|
||||
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public <T> Subscription untilDestroy(@NonNull final Single<T> single,
|
||||
|
|
@ -252,14 +250,7 @@ public class BaseLifecycleBindable implements LifecycleBindable {
|
|||
actualObservable = observable.observeOn(AndroidSchedulers.mainThread())
|
||||
.doOnCompleted(onCompletedAction)
|
||||
.doOnNext(onNextAction)
|
||||
.doOnError(throwable -> {
|
||||
final boolean isRxError = throwable instanceof OnErrorThrowable;
|
||||
if ((!isRxError && throwable instanceof RuntimeException)
|
||||
|| (isRxError && throwable.getCause() instanceof RuntimeException)) {
|
||||
Lc.assertion(throwable);
|
||||
}
|
||||
onErrorAction.call(throwable);
|
||||
});
|
||||
.onErrorResumeNext(Observable.empty());
|
||||
}
|
||||
|
||||
return isCreatedSubject.first()
|
||||
|
|
|
|||
Loading…
Reference in New Issue