From e7a451da8d8e49cd937af9847ec372473a758e26 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 9 Jul 2022 11:14:50 +0200 Subject: [PATCH] Fix issue #233 - Issue with polls --- .../main/java/app/fedilab/android/ui/drawer/StatusAdapter.java | 3 +++ 1 file changed, 3 insertions(+) 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 73755521..34c970a0 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 @@ -1191,6 +1191,9 @@ public class StatusAdapter extends RecyclerView.Adapter j++; } } else { + if (statusToDeal.poll.voters_count == 0 && statusToDeal.poll.votes_count > 0) { + statusToDeal.poll.voters_count = statusToDeal.poll.votes_count; + } holder.binding.poll.rated.setVisibility(View.GONE); holder.binding.poll.submitVote.setVisibility(View.VISIBLE); if (statusToDeal.poll.multiple) {