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:
Torsten Grote
2016-09-05 13:33:44 -03:00
parent 387e44d114
commit 54290bc374
4 changed files with 30 additions and 126 deletions

View File

@@ -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));
}