<doOnTextChanged in infinite looping> I'm trying t...
# stackoverflow
u
doOnTextChanged in infinite looping I'm trying to delete the last character in case it's a number in Android's EditText. However, I am falling into an infinite loop. The logic I'm implementing is the following: If the user types a number in the first 4 characters, the doOnTextChang event is called and validated if it's a number. After validation, it removes the last character. However, after removing the last character, it understands that it is to be called again, thus being in a loop and freezing the application. var isNum:...