hiding the entry views when clearing the errors

This commit is contained in:
Adam Brown 2022-07-13 10:54:49 +01:00
parent 2792cceebe
commit aeb881e8b6
1 changed files with 2 additions and 0 deletions

View File

@ -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
}
}