Created
November 13, 2016 10:15
-
-
Save mplacona/2cb5cdf4955032b8af414c978aa1c2bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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