mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-24 23:57:30 +00:00
fix crash on unanswerable slider
This commit is contained in:
parent
f1143871ac
commit
b8060d5bcf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user