TextWatcher events are being fired multiple times

I had the same kind of problem, when I pressed backspace with cursor at the end of a continuous text, afterTextChange was called 3 times:
– The first time with the correct s value
– The second time with a clear value
– The third time with the correct value again

After having search a lot on the web, I tried to change my EditText inputType to

android:inputType="textNoSuggestions"

Don’t ask me why, but it worked, afterTextChanged is now called only once.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)