Skip to content

Instantly share code, notes, and snippets.

@mplacona
Created November 13, 2016 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mplacona/2cb5cdf4955032b8af414c978aa1c2bd to your computer and use it in GitHub Desktop.
Save mplacona/2cb5cdf4955032b8af414c978aa1c2bd to your computer and use it in GitHub Desktop.
ButterKnife.bind(this);
Observable<CharSequence> loginObservable = RxTextView.textChanges(mLogin);
Observable<CharSequence> passwordObservable = RxTextView.textChanges(mPassword);
Observable<Boolean> combinedObservables = Observable.combineLatest(loginObservable, passwordObservable, (o1, o2) -> isValidLogin(o1) && isValidPassword(o2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment