Since TextInputLayout.hint and TextInputLayout.error are CharSequence, the KTextInputLayout.hasHint() and KTextInputLayout.hasError() checks may fail if we assign a Spannable instance to this attributes.
Relevant Code:
fun hasHint(hint: String) {
view.check(ViewAssertion { view, notFoundException ->
if (view is TextInputLayout) {
if (hint != view.hint) {
Since
TextInputLayout.hint
andTextInputLayout.error
areCharSequence
, theKTextInputLayout.hasHint()
andKTextInputLayout.hasError()
checks may fail if we assign aSpannable
instance to this attributes.Relevant Code: