I'm getting a very weird issue and wonder if someo...
# announcements
t
I'm getting a very weird issue and wonder if someone have already seen that, before trying to find a small repro. On some suspending functions an Android TextView.getText().toString() == "" works but TextView.text.toString() == "" (As suggested by IDE and previously worked) triggers java.lang.ClassCastException: android.text.SpannableStringBuilder cannot be cast to java.lang.String. It's like in the second case the .toString() call is converted to a cast and not the proper toString()
👀 2
m
use TextView.text == ""
t
Try first it 😉 For the record it's a Kotlin 1.4 compiler bug but currently unable to find a small repro 😞