Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void applyEmptyTextListener() {
- Observable.combineLatest(RxTextView.textChanges(firstEditText).map(str -> !isEmpty(str)),
- RxTextView.textChanges(secondEditText).map(str -> !isEmpty(str)),
- (first, second) -> first && second)
- .subscribe(enabled -> button.setEnabled(enabled));
- }
Advertisement
Add Comment
Please, Sign In to add comment