|
@ -26,7 +26,6 @@ import gr.thmmy.mthmmy.model.TopicSummary; |
|
|
* specified {@link ForumFragment.ForumFragmentInteractionListener}. |
|
|
* specified {@link ForumFragment.ForumFragmentInteractionListener}. |
|
|
*/ |
|
|
*/ |
|
|
class ForumAdapter extends ExpandableRecyclerAdapter<Category, Board, ForumAdapter.CategoryViewHolder, ForumAdapter.BoardViewHolder> { |
|
|
class ForumAdapter extends ExpandableRecyclerAdapter<Category, Board, ForumAdapter.CategoryViewHolder, ForumAdapter.BoardViewHolder> { |
|
|
private final Context context; |
|
|
|
|
|
private final LayoutInflater layoutInflater; |
|
|
private final LayoutInflater layoutInflater; |
|
|
|
|
|
|
|
|
private final List<Category> categories; |
|
|
private final List<Category> categories; |
|
@ -34,7 +33,6 @@ class ForumAdapter extends ExpandableRecyclerAdapter<Category, Board, ForumAdapt |
|
|
|
|
|
|
|
|
ForumAdapter(Context context, @NonNull List<Category> categories, BaseFragment.FragmentInteractionListener listener) { |
|
|
ForumAdapter(Context context, @NonNull List<Category> categories, BaseFragment.FragmentInteractionListener listener) { |
|
|
super(categories); |
|
|
super(categories); |
|
|
this.context = context; |
|
|
|
|
|
this.categories = categories; |
|
|
this.categories = categories; |
|
|
mListener = (ForumFragment.ForumFragmentInteractionListener) listener; |
|
|
mListener = (ForumFragment.ForumFragmentInteractionListener) listener; |
|
|
layoutInflater = LayoutInflater.from(context); |
|
|
layoutInflater = LayoutInflater.from(context); |
|
|