feat: 优化代码

pull/103/head
kunfei 5 years ago
parent 25c9285524
commit 50ce3412bb
  1. 6
      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())
}

Loading…
Cancel
Save