1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-12-22 13:06:58 +00:00

fix crash on unanswerable slider

This commit is contained in:
Austin Huang 2021-07-25 11:05:50 -04:00
parent f1143871ac
commit b8060d5bcf
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -747,7 +747,7 @@ class StoryViewerFragment : Fragment() {
}
else {
input.isEnabled = false
tv.text = getString(R.string.slider_answer, percentage.format(slider.viewerVote))
if (slider.viewerVote != null) tv.text = getString(R.string.slider_answer, percentage.format(slider.viewerVote))
}
sliderView.addView(input)
sliderView.addView(tv)