mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 14:56:41 +00:00
fixed remove competitor from finishing list
This commit is contained in:
1 parent
f7a924a2e3
commit
2b2e1f71e7
1 file changed
+3
-2
+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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user