-
Notifications
You must be signed in to change notification settings - Fork 136
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
Sometimes IndexOutOfBoundsException? #29
Comments
Hi @imoblife, sorry for the delay... I've been very busy :/ Are you still experiencing this issue? From the 1st log my guess is that something related to your adapter, not a bug in the lib itself |
The 1st is ok, but how about the 2nd? |
Hey @imoblife, with which version of android are you compiling your app? Is possible for you for sending me a sample code where I can reproduce this? |
@diegocarloslima Hi, imoblife and I are the same, I didn't notice your reply before. And the exception grows fast recently, so here is all related files. Please feel free to contact me, thank you :) |
the crash was caused by collapseGroup() on onGroupClick(), while Accessibility Service should be enabled:
|
1st log:
java.lang.IndexOutOfBoundsException: Invalid index 3, size is 3
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
at java.util.ArrayList.get(ArrayList.java:304)
at base.util.ui.listview.ExpandListAdapter.getGroup(ExpandListAdapter.java)
at my.package.Fragment$Adapter.getGroupView(Fragment.java)
at com.diegocarloslima.fgelv.lib.WrapperExpandableListAdapter.getGroupView(WrapperExpandableListAdapter.java)
at android.widget.ExpandableListConnector.getView(ExpandableListConnector.java:450)
2nd log:
java.lang.ArrayIndexOutOfBoundsException
at android.view.MotionEvent.getY(MotionEvent.java:934)
at android.widget.AbsListView.onTouchEvent(AbsListView.java:2263)
at android.widget.ListView.onTouchEvent(ListView.java:3492)
at com.diegocarloslima.fgelv.lib.FloatingGroupExpandableListView.onTouchEvent(FloatingGroupExpandableListView.java:312)
at android.view.View.dispatchTouchEvent(View.java:3934)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:934)
at com.diegocarloslima.fgelv.lib.FloatingGroupExpandableListView.dispatchTouchEvent(FloatingGroupExpandableListView.java:301)
The text was updated successfully, but these errors were encountered: