Skip to content

Commit

Permalink
Merge pull request #1929 from humazed/master
Browse files Browse the repository at this point in the history
fixed the issue #1928 regarding onItemSwiped callback.
  • Loading branch information
AllenCoder authored Aug 13, 2018
2 parents 836649a + 95959c3 commit 611cc13
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ public void onItemSwiped(RecyclerView.ViewHolder viewHolder) {
mData.remove(pos);
notifyItemRemoved(viewHolder.getAdapterPosition());
}
if (mOnItemSwipeListener != null && itemSwipeEnabled) {


if (mOnItemSwipeListener != null && itemSwipeEnabled) {
mOnItemSwipeListener.onItemSwiped(viewHolder, getViewHolderPosition(viewHolder));
}
}
Expand Down

0 comments on commit 611cc13

Please sign in to comment.