mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Show Blog Posts always in the same design
This also adds comments to the blog post detail screen that were previously missing.
This commit is contained in:
@@ -46,7 +46,7 @@ class BlogPostViewHolder extends RecyclerView.ViewHolder {
|
||||
super(v);
|
||||
|
||||
ctx = v.getContext();
|
||||
layout = (ViewGroup) v;
|
||||
layout = (ViewGroup) v.findViewById(R.id.postLayout);
|
||||
reblogger = (AuthorView) v.findViewById(R.id.rebloggerView);
|
||||
author = (AuthorView) v.findViewById(R.id.authorView);
|
||||
reblogButton = (ImageView) v.findViewById(R.id.commentView);
|
||||
@@ -67,6 +67,10 @@ class BlogPostViewHolder extends RecyclerView.ViewHolder {
|
||||
reblogButton.setVisibility(GONE);
|
||||
}
|
||||
|
||||
void updateDate(long time) {
|
||||
author.setDate(time);
|
||||
}
|
||||
|
||||
void setTransitionName(MessageId id) {
|
||||
ViewCompat.setTransitionName(layout, getTransitionName(id));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user