You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using setOnItemSwipeListener#onItemSwiped as in sample application I noticed that onItemSwiped is called before the swiped item is deleted from the data list.
looking at library code it turns out the that in BaseItemDraggableAdapteronItemSwiped#onItemSwiped is called before remove mData.remove(pos);
which make the callback mostly useless if you want to make anything with the updated data.
I'm suggesting moving onItemSwiped at the end of the method.
I have tried it and everything seems to be working fine.
I can make a pull request for it if you want.
The text was updated successfully, but these errors were encountered:
humazed
added a commit
to humazed/BaseRecyclerViewAdapterHelper
that referenced
this issue
Jan 15, 2018
when using
setOnItemSwipeListener#onItemSwiped
as in sample application I noticed thatonItemSwiped
is called before the swiped item is deleted from the data list.looking at library code it turns out the that in
BaseItemDraggableAdapteronItemSwiped#onItemSwiped
is called before removemData.remove(pos);
which make the callback mostly useless if you want to make anything with the updated data.
I'm suggesting moving onItemSwiped at the end of the method.
I have tried it and everything seems to be working fine.
I can make a pull request for it if you want.
The text was updated successfully, but these errors were encountered: