Fix: Polls without CWs not viewable

This commit is contained in:
0xd9a 2025-04-24 02:15:17 +05:30
parent b06fc3e952
commit 786a4bc846

View file

@ -2107,7 +2107,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
adapter.notifyItemChanged(holder.getBindingAdapterPosition());
}
}));
if (statusToDeal.isExpended) {
if (statusToDeal.spoiler_text == null || statusToDeal.spoiler_text.trim().isEmpty() || statusToDeal.isExpended) {
holder.binding.poll.pollContainer.setVisibility(View.VISIBLE);
} else {
holder.binding.poll.pollContainer.setVisibility(View.GONE);