Password could contain only spaces

This commit is contained in:
Benoit Marty 2019-12-10 18:33:37 +01:00
parent 9bfe904745
commit bb85d41f05

View file

@ -134,7 +134,7 @@ class LoginFragment @Inject constructor(
Observable
.combineLatest(
loginField.textChanges().map { it.trim().isNotEmpty() },
passwordField.textChanges().map { it.trim().isNotEmpty() },
passwordField.textChanges().map { it.isNotEmpty() },
BiFunction<Boolean, Boolean, Boolean> { isLoginNotEmpty, isPasswordNotEmpty ->
isLoginNotEmpty && isPasswordNotEmpty
}