Skip to content

Commit

Permalink
Merge pull request #124 from Omega-R/bugfix/header-footer-on-baselist…
Browse files Browse the repository at this point in the history
…adapter

fixed bug when recyclerview is not attached in base class with header…
  • Loading branch information
anton-knyazev authored Apr 2, 2019
2 parents d9bfbcb + 4a147bd commit f6c99d5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ public HeaderFooterWrapperAdapter(T adapter) {
super.setHasStableIds(mRealAdapter.hasStableIds());
}

@Override
public void onAttachedToRecyclerView(RecyclerView recyclerView) {
super.onAttachedToRecyclerView(recyclerView);
mRealAdapter.onAttachedToRecyclerView(recyclerView);
}

@NonNull
@Override
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
Expand Down

0 comments on commit f6c99d5

Please sign in to comment.