Browse Source

don't support polls with more than 30 options

pull/61/merge
oogee 6 years ago
parent
commit
736c735703
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java

2
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java

@ -180,6 +180,8 @@ class TopicAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
}
if (ThmmyParser.containsHtml(poll.getQuestion()))
pollSupported = false;
if (entries.length > 30)
pollSupported = false;
if (!pollSupported) {
holder.optionsLayout.setVisibility(View.GONE);
holder.voteChart.setVisibility(View.GONE);

Loading…
Cancel
Save