dharanikumar / IOS_7-SwipeGesture-Android

IOS 7 Swipe Gesture in Android listview.
51 stars 34 forks source link

Delete listview item cause a problem #4

Open maanu opened 9 years ago

maanu commented 9 years ago

Hello,

I have made custom listview adapter.and trying to delete row.It is deleted when there is a one row in listview.but when there is more than one row it gives an error in deleting row. Thanks

dharanikumar commented 9 years ago

@maanu I have made a fix.. check it now

maanu commented 9 years ago

Hello, Thanks for reply. But I face same problem with deletion.Works fine when its only one row of listview.When there comes more than one row its perform delete operation but throw an error after.

ERROR:

Attempt to invoke virtual method 'boolean java.lang.Object.equals(java.lang.Object)' on a null object reference at android.widget.AdapterView.getPositionForView(AdapterView.java:602) at com.swipe.ListViewSwipeGesture$touchClass.onTouch(ListViewSwipeGesture.java:562)

Thanks