Fix an issue with poll

This commit is contained in:
Thomas 2023-12-23 17:12:07 +01:00
parent 25c237f0a8
commit d1f9378a11

View file

@ -1782,7 +1782,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
if (statusToDeal.poll != null && statusToDeal.poll.options != null) { if (statusToDeal.poll != null && statusToDeal.poll.options != null) {
int normalize; 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; normalize = statusToDeal.poll.voters_count;
} else { } else {
normalize = statusToDeal.poll.votes_count; normalize = statusToDeal.poll.votes_count;