Guest User

Untitled

a guest
Feb 27th, 2018
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. private void applyEmptyTextListener() {
  2.         Observable.combineLatest(RxTextView.textChanges(firstEditText).map(str -> !isEmpty(str)),
  3.                 RxTextView.textChanges(secondEditText).map(str -> !isEmpty(str)),
  4.                 (first, second) -> first && second)
  5.                 .subscribe(enabled -> button.setEnabled(enabled));
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment