You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works well for digits, but for letters, there is one issue:
For example mask is [____]
when you type the second character it will turn cursor to the start of the line, so new chars will appear from zero position.
This is because isDeletion defined in wrong way. I suggest using this method instead
override fun beforeTextChanged(p0: CharSequence?, p1: Int, p2: Int, p3: Int) {
isDeletion = p2 > p3
this.listener?.beforeTextChanged(p0, p1, p2, p3)
}