fix VancedLanguageSelectionDialog langPrefs npe
This commit is contained in:
parent
b7ba61b5e2
commit
3b092c9652
|
@ -70,7 +70,7 @@ class VancedLanguageSelectionDialog : BottomSheetDialogFragment() {
|
||||||
val loc = Locale(lang)
|
val loc = Locale(lang)
|
||||||
val box: MaterialCheckBox = MaterialCheckBox(requireActivity()).apply {
|
val box: MaterialCheckBox = MaterialCheckBox(requireActivity()).apply {
|
||||||
tag = lang
|
tag = lang
|
||||||
isChecked = langPrefs!!.contains(lang)
|
isChecked = langPrefs?.contains(lang) ?: false
|
||||||
text = loc.getDisplayLanguage(loc).capitalize(Locale.ROOT)
|
text = loc.getDisplayLanguage(loc).capitalize(Locale.ROOT)
|
||||||
textSize = 18F
|
textSize = 18F
|
||||||
typeface = ResourcesCompat.getFont(requireActivity(), R.font.exo_bold)
|
typeface = ResourcesCompat.getFont(requireActivity(), R.font.exo_bold)
|
||||||
|
|
Loading…
Reference in New Issue