Commit a8ce982a authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Fix the register button state.

parent 5c2c87aa
......@@ -149,11 +149,11 @@ class SignupFragment : Fragment(), SignupView {
text_email.asObservable()
) { text_name, text_username, text_password, text_email ->
return@combineLatest (
(text_name.isNotBlank() &&
text_name.isNotBlank() &&
text_username.isNotBlank() &&
text_password.isNotBlank() &&
text_email.isNotBlank()) ||
!text_email.toString().isEmail()
text_email.isNotBlank() &&
text_email.toString().isEmail()
)
}.subscribe { isValid ->
if (isValid) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment