Philio / PinEntryView

A pin entry view widget for Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

We got exception when onRestoreInstanceState has been called

amelize opened this issue · comments

Stack:

Caused by java.lang.IndexOutOfBoundsException: setSpan (4 ... 4) ends beyond length 0
at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1022)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:615)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:611)
at android.text.Selection.setSelection(Selection.java:123)
at android.text.Selection.setSelection(Selection.java:134)
at android.widget.EditText.setSelection(EditText.java:128)
at me.philio.pinentry.PinEntryView.onRestoreInstanceState(PinEntryView.java:226)