fix visibility when displaying counters

pull/434/head
Thomas 2 years ago
parent a658d17e2c
commit 8645f6d59b

@ -942,6 +942,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
holder.binding.reblogsCount.setText(String.valueOf(statusToDeal.reblogs_count)); holder.binding.reblogsCount.setText(String.valueOf(statusToDeal.reblogs_count));
holder.binding.favoritesCount.setText(String.valueOf(statusToDeal.favourites_count)); holder.binding.favoritesCount.setText(String.valueOf(statusToDeal.favourites_count));
holder.binding.time.setText(Helper.longDateToString(statusToDeal.created_at)); holder.binding.time.setText(Helper.longDateToString(statusToDeal.created_at));
holder.binding.visibility.setImageResource(ressource);
holder.binding.time.setVisibility(View.VISIBLE); holder.binding.time.setVisibility(View.VISIBLE);
} else { } else {
holder.binding.statusInfo.setVisibility(View.GONE); holder.binding.statusInfo.setVisibility(View.GONE);
@ -954,7 +955,6 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
} }
//---- SPOILER TEXT ----- //---- SPOILER TEXT -----
if (statusToDeal.spoiler_text != null && !statusToDeal.spoiler_text.trim().isEmpty()) { if (statusToDeal.spoiler_text != null && !statusToDeal.spoiler_text.trim().isEmpty()) {
if (expand_cw || expand) { if (expand_cw || expand) {
holder.binding.spoilerExpand.setVisibility(View.VISIBLE); holder.binding.spoilerExpand.setVisibility(View.VISIBLE);

Loading…
Cancel
Save