From dfd8a1b2b79197781e5ad7886d342ee1e8e04bb5 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sat, 24 Jul 2021 10:33:40 -0400 Subject: [PATCH] fix poll results not being displayed --- .../java/awais/instagrabber/fragments/StoryViewerFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.kt b/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.kt index 771d17bc..bcb85ee8 100644 --- a/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.kt +++ b/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.kt @@ -694,8 +694,8 @@ class StoryViewerFragment : Fragment() { (if (correctAnswer == tallies.indexOf(it)) "*** " else "") + it.text + " (" + it.count + ")" } val builder = AlertDialog.Builder(context) - if (title != null) builder.setTitle(title) - if (viewerVote != null) builder.setMessage(R.string.story_quizzed) + if (viewerVote != null) builder.setTitle(R.string.story_quizzed) + else if (title != null) builder.setTitle(title) builder.setPositiveButton(if (viewerVote == null) R.string.cancel else R.string.ok, null) val adapter = ArrayAdapter(context, android.R.layout.simple_list_item_1, choices.toTypedArray()) builder.setAdapter(adapter, onClickListener)