1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-24 07:37:30 +00:00

fix poll results not being displayed

This commit is contained in:
Austin Huang 2021-07-24 10:33:40 -04:00
parent d51e8bc626
commit dfd8a1b2b7
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -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)