Slide 51
Slide 51 text
Observables
.combineLatest(
usernameView.textChanges().map { it.isNotEmpty() },
passwordView.textChanges().map { it.isNotEmpty() })
{ hasUsername, hasPassword -> hasUsername && hasPassword }
.subscribe(loginButton::setEnabled)
Username
Password
Login