From d1f9378a117c6992dbdeeacfe3b935ab7b01269d Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 23 Dec 2023 17:12:07 +0100 Subject: [PATCH] Fix an issue with poll --- .../app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java index 239e8fc0..b417ff6b 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java @@ -1782,7 +1782,7 @@ public class StatusAdapter extends RecyclerView.Adapter if (statusToDeal.poll != null && statusToDeal.poll.options != null) { int normalize; - if(statusToDeal.poll.multiple && statusToDeal.poll.voters_count != 0) { + if(statusToDeal.poll.multiple && statusToDeal.poll.voters_count > 1) { normalize = statusToDeal.poll.voters_count; } else { normalize = statusToDeal.poll.votes_count;