KTextInputLayout's hasHint() and hasError() doesn't work with Spannable
iyakovlev opened this issue · comments
Ilya Yakovlev commented
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) {