fixed remove competitor from finishing list

This commit is contained in:
Peter Siegmund committed 2017-01-10 16:07:43 +01:00
1 parent f7a924a2e3
commit 2b2e1f71e7
1 file changed
+3 -2
@@ -159,9 +159,10 @@ public class FinishListAdapter extends BaseDraggableSwipeAdapter<FinishListAdapt
switch (reaction) {
case RecyclerViewSwipeManager.AFTER_SWIPE_REACTION_REMOVE_ITEM:
if (mListener != null) {
mListener.onItemRemoved(mCompetitor.get(position));
mCompetitor.remove(position);
CompetitorResultWithIdImpl competitor = mCompetitor.get(position);
mCompetitor.remove(competitor);
notifyItemRemoved(position);
mListener.onItemRemoved(competitor);
}
break;