ValidatedTextInputLayout icon indicating copy to clipboard operation
ValidatedTextInputLayout copied to clipboard

Double check if not in edit mode?

Open LukaszFiszerMJ opened this issue 4 years ago • 0 comments

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?

LukaszFiszerMJ avatar Jan 26 '21 00:01 LukaszFiszerMJ