Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexOutOfBoundsException #143

Open
halig313 opened this issue May 14, 2021 · 2 comments
Open

IndexOutOfBoundsException #143

halig313 opened this issue May 14, 2021 · 2 comments

Comments

@halig313
Copy link

hello iam using your library and iam facing this Exception:

{java.lang.IndexOutOfBoundsException: setSpan (75 ... 52) has end before start
at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1314)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:682)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:674)
at com.chinalwb.are.styles.ARE_ABS_Dynamic_Style.applyNewStyle(ARE_ABS_Dynamic_Style.java:87)
at com.chinalwb.are.styles.toolitems.styles.ARE_Style_FontColor.onPickColor(ARE_Style_FontColor.java:145)
at com.chinalwb.are.colorpicker.ColorPickerView$1.onClick(ColorPickerView.java:108)
at android.view.View.performClick(View.java:7352)
at android.view.View.performClickInternal(View.java:7318)
at android.view.View.access$3200(View.java:846)
at android.view.View$PerformClick.run(View.java:27800)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7050)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)}

the problem happens when i select a part of edittext and then i want to use FontColor on it;
is it any way to check Span start and end before styling it?

@mythoi
Copy link

mythoi commented Oct 18, 2021

我也遇到一摸一样的异常

@pavelpoley
Copy link

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants