ValidatedTextInputLayout
ValidatedTextInputLayout copied to clipboard
Double check if not in edit mode?
private fun initialize() {
if (!isInEditMode) {
validators = ArrayList()
this.post {
if (!editText!!.isInEditMode)
initializeTextWatcher()
}
}
}
Why do we need to check if editText is not in edit mode after w made sure layout is not. Is that possible that one of them is in edit mode and the other one is not?