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

App crashes when you start typing while spinner is scrolling #53

Open
Adelina609 opened this issue Sep 3, 2021 · 2 comments
Open

App crashes when you start typing while spinner is scrolling #53

Adelina609 opened this issue Sep 3, 2021 · 2 comments

Comments

@Adelina609
Copy link

Steps to reproduce:
select an item in code using spinner.setSelection(position)
click on spinner for selecting item(spinner starts scrolling), in that moment you should start typing something in search.

Also, count of items ~1500

Logs
java.lang.IndexOutOfBoundsException: setSpan (-1 ... 1) starts before 0 at android.text.SpannableStringInternal.checkRange(SpannableStringInternal.java:496) at android.text.SpannableStringInternal.setSpan(SpannableStringInternal.java:196) at android.text.SpannableStringInternal.setSpan(SpannableStringInternal.java:183) at android.text.SpannableString.setSpan(SpannableString.java:60) at com.chivorn.smartmaterialspinner.SearchableSpinnerDialog$1.getView(SearchableSpinnerDialog.java:209) at android.widget.AbsListView.obtainView(AbsListView.java:2494) at android.widget.HwAbsListView.obtainView(HwAbsListView.java:1139) at android.widget.ListView.makeAndAddView(ListView.java:2119) at android.widget.ListView.fillDown(ListView.java:815) at android.widget.ListView.fillGap(ListView.java:776) at android.widget.AbsListView.trackMotionScroll(AbsListView.java:5646) at android.widget.ListView.trackMotionScroll(ListView.java:2013) at android.widget.AbsListView$FlingRunnable.run(AbsListView.java:5152) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1057) at android.view.Choreographer.doCallbacks(Choreographer.java:875) at android.view.Choreographer.doFrame(Choreographer.java:772) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1042) at android.os.Handler.handleCallback(Handler.java:888) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:213) at android.app.ActivityThread.main(ActivityThread.java:8178) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)

@KaihuaiX
Copy link

KaihuaiX commented Oct 4, 2021

got the same issue.

@MarcellHarmaci
Copy link

MarcellHarmaci commented Jan 31, 2022

Same issue here.

Also I can't turn off the smooth scroll of the spinner when something is already selected and I have so many items. This is a problem.

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