Update ExploreRvAdapter.java

This commit is contained in:
androiddevkotlin 2021-03-17 17:20:52 +02:00
parent 4064e1af98
commit 307b302899

View file

@ -158,6 +158,8 @@ public class ExploreRvAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
this.neededMapsCard = card; this.neededMapsCard = card;
if (isCardExists(getNeededMapsCardPosition(), TravelNeededMapsCard.TYPE)) { if (isCardExists(getNeededMapsCardPosition(), TravelNeededMapsCard.TYPE)) {
updateNeededMapsCard(false); updateNeededMapsCard(false);
} else {
addItem(getNeededMapsCardPosition(), card);
} }
} }