Open phazei opened 1 year ago
Entered "aaa," then entered "aaa," a second time TokenCompleteTextView.kt line 839
} else if (shouldIgnoreToken(tokenSpan.token)) {
editable.replace(candidateRange.start, candidateRange.end, "")
Edit, never mind, thought this was something. Gets passed here then ends up in a spannable class and crashes. I'm trying to debug but I can't figure it out.
This hasn't crashed on the emulator for API 28 and 31. This crashes on my Samsung Galaxy S10e running Android 12 One UI 4.1. Very simple tag input, strings only.
Edit: After more testing, I found that it does happen in the emulator too, on 31 and 32 (28 works). It specifically only crashes when I use the soft keyboard, on either real phone or emulator, to submit the ",". So it's a directly related issue to the other ticket I closed. Here in v4 the issue was fixed for regular input, but whatever it's doing related to shouldIgnoreToken, it's still having a related issue. It does call that method just fine, it's sometime after it's called that it crashes. Works fine with keyboard ",", fails with softkeyboard "," 😔