From 8645f6d59b1e7bc6dc82394476da4f33d5ddaa2b Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 14 Sep 2022 17:24:51 +0200 Subject: [PATCH] fix visibility when displaying counters --- .../main/java/app/fedilab/android/ui/drawer/StatusAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java index fae6470f..6e07d138 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java @@ -942,6 +942,7 @@ public class StatusAdapter extends RecyclerView.Adapter holder.binding.reblogsCount.setText(String.valueOf(statusToDeal.reblogs_count)); holder.binding.favoritesCount.setText(String.valueOf(statusToDeal.favourites_count)); holder.binding.time.setText(Helper.longDateToString(statusToDeal.created_at)); + holder.binding.visibility.setImageResource(ressource); holder.binding.time.setVisibility(View.VISIBLE); } else { holder.binding.statusInfo.setVisibility(View.GONE); @@ -954,7 +955,6 @@ public class StatusAdapter extends RecyclerView.Adapter } //---- SPOILER TEXT ----- - if (statusToDeal.spoiler_text != null && !statusToDeal.spoiler_text.trim().isEmpty()) { if (expand_cw || expand) { holder.binding.spoilerExpand.setVisibility(View.VISIBLE);