|
|
@ -19,6 +19,7 @@ import gr.thmmy.mthmmy.base.BaseFragment; |
|
|
|
import gr.thmmy.mthmmy.model.PostSummary; |
|
|
|
import gr.thmmy.mthmmy.model.TopicSummary; |
|
|
|
import gr.thmmy.mthmmy.views.ReactiveWebView; |
|
|
|
import timber.log.Timber; |
|
|
|
|
|
|
|
/** |
|
|
|
* {@link RecyclerView.Adapter} that can display a {@link TopicSummary} and makes a call to the |
|
|
@ -61,6 +62,7 @@ class LatestPostsAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { |
|
|
|
@SuppressLint("ClickableViewAccessibility") |
|
|
|
@Override |
|
|
|
public void onBindViewHolder(@NonNull final RecyclerView.ViewHolder holder, int position) { |
|
|
|
if (holder instanceof LatestPostViewHolder){ |
|
|
|
PostSummary topic = parsedTopicSummaries.get(position); |
|
|
|
final LatestPostViewHolder latestPostViewHolder = (LatestPostViewHolder) holder; |
|
|
|
latestPostViewHolder.postTitle.setText(topic.getSubject()); |
|
|
@ -78,6 +80,7 @@ class LatestPostsAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public int getItemCount() { |
|
|
|