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 Observable
.combineLatest( .combineLatest(
loginField.textChanges().map { it.trim().isNotEmpty() }, loginField.textChanges().map { it.trim().isNotEmpty() },
passwordField.textChanges().map { it.trim().isNotEmpty() }, passwordField.textChanges().map { it.isNotEmpty() },
BiFunction<Boolean, Boolean, Boolean> { isLoginNotEmpty, isPasswordNotEmpty -> BiFunction<Boolean, Boolean, Boolean> { isLoginNotEmpty, isPasswordNotEmpty ->
isLoginNotEmpty && isPasswordNotEmpty isLoginNotEmpty && isPasswordNotEmpty
} }