Merge pull request #34 from TouchInstinct/ZuZuK-patch-1

Update TouchinService.java
This commit is contained in:
Gavriil 2017-03-07 21:08:06 +03:00 committed by GitHub
commit bbcbd5d767
1 changed files with 1 additions and 1 deletions

View File

@ -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() && onNextAction == Actions.empty() && onNextAction == Actions.empty()) {
if (onNextAction == Actions.empty() && onErrorAction == Actions.empty() && onCompletedAction == Actions.empty()) {
actualObservable = observable.doOnCompleted(onCompletedAction);
} else {
actualObservable = observable.observeOn(AndroidSchedulers.mainThread()).doOnCompleted(onCompletedAction);