Travel: Maps you need card, popular articles jumping

For more smoothy update recycle view
			notifyItemRangeChanged(getNeededMapsCardPosition(), items.size());
This commit is contained in:
androiddevkotlin 2021-03-17 13:24:08 +02:00
parent bce07417c6
commit 4064e1af98

View file

@ -158,8 +158,6 @@ 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 if (addItem(getNeededMapsCardPosition(), card)) {
notifyDataSetChanged();
} }
} }