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