-
Notifications
You must be signed in to change notification settings - Fork 38
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 empty recycler causes crash #3
Comments
I will look into it and update it. Was just too busy, so took time to notice the issue. |
Hi Rahulrj, It would be great if you could find some time to fix this issue. In the meanwhile, I added the following quick fix in " in closeOpenedItems() and closeOtherOpenedItems() methods of your lib and recompiled it locally : "if (start==-1) return;" Also could you please add this lib in a Marven repo and if possible use versions. Thanks in Advance. |
Okay. Will do on the coming Thursday as its a holiday. |
Good. I'm afraid my fix has side effects . Better a clean fix from the designer Sent from Samsung Mobile. -------- Original message -------- From: RAHUL RAJA [email protected] Date:13/01/2015 23:51 (GMT+07:00) To: rahulrj/Swipe_RecyclerView [email protected] Cc: u2gilles [email protected] Subject: Re: [Swipe_RecyclerView] swiping empty recycler causes crash (#3) — |
I am running into the same issue. Attempting to figure out a fix though do not seem to be succeeding. 01-18 23:10:29.329 1264-1264/com.drinkapp.drink E/MessageQueue-JNI﹕ Exception in MessageQueue callback: handleReceiveCallback |
We may not use the lib in the same way. I recommend you to use a debugger and notice that when start==-1, it crashed. Then add your own fix to make it works until Rahulrj provides the final patch. . |
Just playing with my app, i noticed that if you swipe an empty swiperecycler it crashes with
java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1 at java.util.ArrayList.get(ArrayList.java:310) at com.fortysevendeg.swipelistview.SwipeListViewTouchListener.closeOtherOpenedItems(SwipeListViewTouchListener.java:997) at com.fortysevendeg.swipelistview.SwipeListViewTouchListener.onTouch(SwipeListViewTouchListener.java:985)
I can post additional code/details tomorrow, but just wanted to put this in before I forgot.
The text was updated successfully, but these errors were encountered: