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

Swiping Rapidly Causes IndexOutOfBounds #92

Open
SyedWasiHaider opened this issue Jun 23, 2015 · 3 comments
Open

Swiping Rapidly Causes IndexOutOfBounds #92

SyedWasiHaider opened this issue Jun 23, 2015 · 3 comments

Comments

@SyedWasiHaider
Copy link

PID: 20606
java.lang.IndexOutOfBoundsException: Invalid index 7, size is 7
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
at com.marshalchen.ultimaterecyclerview.swipelistview.SwipeListViewTouchListener.closeOpenedItems(SwipeListViewTouchListener.java:780)

Can you please add the ability to override this or perhaps just check the index before using it.

@SyedWasiHaider SyedWasiHaider changed the title Swiping Rapidly Causes IndexOutOfBounds error Process: com.dreamteam.fitnessquest, PID: 20606 java.lang.IndexOutOfBoundsException: Invalid index 7, size is 7 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at com.marshalchen.ultimaterecyclerview.swipelistview.SwipeListViewTouchListener.closeOpenedItems(SwipeListViewTouchListener.java:780) Swiping Rapidly Causes IndexOutOfBounds Jun 23, 2015
@cymcsg
Copy link
Owner

cymcsg commented Jun 24, 2015

Do you try SwipeListViewExampleActivity? I did not find the error.
At the same time ,I think you can control it in onDismiss

@SyedWasiHaider
Copy link
Author

Yes that is what I based my code off of. I think the problem is internal to your library since that is where the error comes from. I forgot to mention I have the following removed because I want to be able to swipe more than one at a time.

swipe:swipeCloseAllItemsWhenMoveList="true"
swipe:onlyOneOpenedWhenSwipe="true"

@cymcsg
Copy link
Owner

cymcsg commented Jun 26, 2015

I removed these line from the demo but nothing happens.
Could you help me remove the two line from the demo and watch if the error would occur?
I should find the error before I can fix it.

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

2 participants