KakaoCup / Kakao

Nice and simple DSL for Espresso in Kotlin

Home Page:https://kakaocup.github.io/Kakao/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KTextInputLayout's hasHint() and hasError() doesn't work with Spannable

iyakovlev opened this issue · comments

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) {