Skip to content

Commit

Permalink
Merge pull request #88 from hzsweers/z/equals
Browse files Browse the repository at this point in the history
Use `.equals()` instead of == for event comparison
  • Loading branch information
dlew committed Feb 23, 2016
2 parents 2a6c68b + a726265 commit 3cc29d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public Observable<T> call(Observable<T> source) {
lifecycle.takeFirst(new Func1<R, Boolean>() {
@Override
public Boolean call(R lifecycleEvent) {
return lifecycleEvent == event;
return lifecycleEvent.equals(event);
}
})
);
Expand Down Expand Up @@ -231,7 +231,7 @@ public Observable<T> call(Observable<T> source) {
new Func2<R, R, Boolean>() {
@Override
public Boolean call(R bindUntilEvent, R lifecycleEvent) {
return lifecycleEvent == bindUntilEvent;
return lifecycleEvent.equals(bindUntilEvent);
}
})
.onErrorReturn(RESUME_FUNCTION)
Expand Down

0 comments on commit 3cc29d7

Please sign in to comment.