TextWatcher is preveting delete whole string from EditText, just char to char
I have one Editext that use a TextWatcher, to make an Currency Mask.
Is working fine, but when i try to delete text, pressing and holding backspace from soft-keyboard, the text isn't erased, unless i repeated press the key multiple times.
I think that can be because every text change, i have to call setText, and this is messing the flow.
Any suggestion ?
myEditText.addTextChangedListener(object : TextWatcher {
override fun onTextChanged(s: CharSequence, start: Int,...