java.lang.IndexOutOfBoundsException: getChars (7 … 0) has end before start

后端 未结 5 2217
梦毁少年i
梦毁少年i 2020-12-19 20:36

My users are sending unhandled exceptions to me via http://code.google.com/p/android-remote-stacktrace/

I am getting the following but have no idea what it means.

5条回答
  •  清酒与你
    2020-12-19 21:00

    I fixed it with a custom textEntry. Changed onSelectionChanged and put there the code from loopj!

    My code:

    @Override
    protected void onSelectionChanged(int selStart, int selEnd) {
        if (selStart >= 0) {
            super.onSelectionChanged(selStart, selEnd);
        } else {
            setSelection(getText().length());
        }
    }
    

提交回复
热议问题