Fixed resetting of soft keyboard

At first, I don't need to call setText() to update the text. It's enough
to change the Editable.

TextView.setText() will restart the InputMethodManager which will reset
the soft keyboard.

Second, don't use Editable.clearSpans() as it will remove too much.
Removing only the spans I added is enough.