|
|
@ -14,6 +14,7 @@ import android.widget.LinearLayout; |
|
|
|
import android.widget.TextView; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
import gr.thmmy.mthmmy.R; |
|
|
|
import gr.thmmy.mthmmy.activities.topic.TopicActivity; |
|
|
@ -164,6 +165,7 @@ class BoardAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { |
|
|
|
subBoardViewHolder.boardMods.setText(subBoard.getMods()); |
|
|
|
subBoardViewHolder.boardStats.setText(subBoard.getStats()); |
|
|
|
subBoardViewHolder.boardLastPost.setText(subBoard.getLastPost()); |
|
|
|
if (!Objects.equals(subBoard.getLastPostUrl(), "")) { |
|
|
|
subBoardViewHolder.boardLastPost.setOnClickListener(new View.OnClickListener() { |
|
|
|
@Override |
|
|
|
public void onClick(View view) { |
|
|
@ -176,6 +178,7 @@ class BoardAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { |
|
|
|
context.startActivity(intent); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} else if (holder instanceof TopicViewHolder) { |
|
|
|
final Topic topic = parsedTopics.get(position - parsedSubBoards.size() - 1 - 1); |
|
|
|
final TopicViewHolder topicViewHolder = (TopicViewHolder) holder; |
|
|
|