From 736c735703ab80d7034c03d3969c99c1dc4147ca Mon Sep 17 00:00:00 2001 From: oogee Date: Mon, 10 Dec 2018 22:58:35 +0200 Subject: [PATCH] don't support polls with more than 30 options --- .../java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java index 4258d00f..2c80ae68 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java @@ -180,6 +180,8 @@ class TopicAdapter extends RecyclerView.Adapter { } 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);