Hi guys. Is there any method to hide `EditTextLayo...
# android
a
Hi guys. Is there any method to hide
EditTextLayout
error message when the fragment dismiss?
stackoverflow 3
k
I am not sure but you should disable all the helperText. like below code
nameInputType.isHelperTextEnabled = false
a
Hi @KV I set it to false when the the fragment is
onDestroy
but the code is not working.
Copy code
override fun onDestroy() {
    super.onDestroy()
    if (arguments != null) {
        quoteViewModel.saveOrUpdateStatus.value = true
        binding.etlQuote.isErrorEnabled = false
        binding.etlQuote.error = ""
        arguments = null
    }
}
k
have you tried
setError(null);
a
Thank you for those who suggest to use
Stack Overflow
. If I could find solution from Stack Overflow or Google, I won't want to waste your time to read my question.