fix StatusDetailedVieHolder ignoring useAbsoluteTime setting (#1215)

main
Konrad Pozniak 6 years ago committed by GitHub
parent feae3f5208
commit 4881e29f19
  1. 4
      app/src/main/java/com/keylesspalace/tusky/adapter/StatusDetailedViewHolder.java
  2. 2
      app/src/main/java/com/keylesspalace/tusky/adapter/ThreadAdapter.java

@ -42,8 +42,8 @@ class StatusDetailedViewHolder extends StatusBaseViewHolder {
private TextView cardUrl;
private View infoDivider;
StatusDetailedViewHolder(View view) {
super(view, false);
StatusDetailedViewHolder(View view, boolean useAbsoluteTime) {
super(view, useAbsoluteTime);
reblogs = view.findViewById(R.id.status_reblogs);
favourites = view.findViewById(R.id.status_favourites);
cardView = view.findViewById(R.id.card_view);

@ -60,7 +60,7 @@ public class ThreadAdapter extends RecyclerView.Adapter {
case VIEW_TYPE_STATUS_DETAILED: {
View view = LayoutInflater.from(parent.getContext())
.inflate(R.layout.item_status_detailed, parent, false);
return new StatusDetailedViewHolder(view);
return new StatusDetailedViewHolder(view, useAbsoluteTime);
}
}
}

Loading…
Cancel
Save