mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-12-25 22:26:59 +00:00
fix poll results not being displayed
This commit is contained in:
parent
d51e8bc626
commit
dfd8a1b2b7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user