diff --git a/app/src/main/java/io/legado/app/ui/widget/prefs/IconListPreference.kt b/app/src/main/java/io/legado/app/ui/widget/prefs/IconListPreference.kt index 25f863a52..4570e7fe3 100644 --- a/app/src/main/java/io/legado/app/ui/widget/prefs/IconListPreference.kt +++ b/app/src/main/java/io/legado/app/ui/widget/prefs/IconListPreference.kt @@ -119,9 +119,9 @@ class IconDialog : DialogFragment() { val adapter = Adapter(requireContext()) recycler_view.adapter = adapter arguments?.let { - entries = it.getCharSequenceArray("entries")!! - entryValues = it.getCharSequenceArray("entryValues")!! - iconNames = it.getCharSequenceArray("iconNames")!! + entries = it.getCharSequenceArray("entries") + entryValues = it.getCharSequenceArray("entryValues") + iconNames = it.getCharSequenceArray("iconNames") entryValues?.let { values -> adapter.setItems(values.toList()) }