Commit 7747a995 authored by 0xd9a's avatar 0xd9a
Browse files

Hide polls with CWs

parent 75283ef5
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2107,7 +2107,11 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
                            adapter.notifyItemChanged(holder.getBindingAdapterPosition());
                        }
                    }));
            if (statusToDeal.isExpended) {
                holder.binding.poll.pollContainer.setVisibility(View.VISIBLE);
            } else {
                holder.binding.poll.pollContainer.setVisibility(View.GONE);
            }
            String pollInfo = context.getResources().getQuantityString(R.plurals.number_of_voters, normalize, normalize);
            if (statusToDeal.poll.expired) {
                pollInfo += " - " + context.getString(R.string.poll_finish_at, MastodonHelper.dateToStringPoll(statusToDeal.poll.expires_at));