fix compilation error
This commit is contained in:
parent
bbcbd5d767
commit
7181a568f3
|
|
@ -170,7 +170,7 @@ public abstract class TouchinService<TLogic extends Logic> extends Service {
|
|||
@NonNull final Action1<Throwable> onErrorAction,
|
||||
@NonNull final Action0 onCompletedAction) {
|
||||
final Observable<T> actualObservable;
|
||||
if (onNextAction == Actions.empty() && onErrorAction == Actions.empty() && onCompletedAction == Actions.empty()) {
|
||||
if (onNextAction == Actions.empty() && onErrorAction == (Action1) Actions.empty() && onCompletedAction == Actions.empty()) {
|
||||
actualObservable = observable.doOnCompleted(onCompletedAction);
|
||||
} else {
|
||||
actualObservable = observable.observeOn(AndroidSchedulers.mainThread()).doOnCompleted(onCompletedAction);
|
||||
|
|
|
|||
Loading…
Reference in New Issue