removed unnecessary bindViewHolder
This commit is contained in:
parent
76e6d064c6
commit
c42328db04
1 changed files with 1 additions and 4 deletions
|
@ -76,10 +76,7 @@ public class ExploreRvAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
|
|||
}
|
||||
} else if (viewHolder instanceof ArticleTravelVH && item instanceof ArticleTravelCard) {
|
||||
((ArticleTravelCard) item).bindViewHolder(viewHolder);
|
||||
ArticleTravelCard articleTravelCard = (ArticleTravelCard) item;
|
||||
articleTravelCard.setLastItem(position == getLastArticleItemIndex());
|
||||
articleTravelCard.bindViewHolder(viewHolder);
|
||||
((ArticleTravelCard) item).bindViewHolder(viewHolder);
|
||||
((ArticleTravelCard) item).setLastItem(position == getLastArticleItemIndex());
|
||||
} else if (viewHolder instanceof OpenBetaTravelVH && item instanceof OpenBetaTravelCard) {
|
||||
((OpenBetaTravelCard) item).bindViewHolder(viewHolder);
|
||||
} else if (viewHolder instanceof StartEditingTravelVH && item instanceof StartEditingTravelCard) {
|
||||
|
|
Loading…
Reference in a new issue