mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 11:48:51 +03:00
hiding the entry views when clearing the errors
This commit is contained in:
parent
2792cceebe
commit
aeb881e8b6
1 changed files with 2 additions and 0 deletions
|
@ -47,7 +47,9 @@ fun observeContentChangesAndResetErrors(username: TextInputLayout, password: Tex
|
|||
transform = { usernameHasContent, passwordHasContent -> usernameHasContent && passwordHasContent }
|
||||
).onEach {
|
||||
username.error = null
|
||||
username.isErrorEnabled = false
|
||||
password.error = null
|
||||
username.isErrorEnabled = false
|
||||
submit.isEnabled = it
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue