Travel: Maps you need card, popular articles jumping
For more smoothy update recycle view notifyItemRangeChanged(getNeededMapsCardPosition(), items.size());
This commit is contained in:
parent
bce07417c6
commit
4064e1af98
1 changed files with 0 additions and 2 deletions
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue