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 bf7a5755d..3ae7982ba 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 @@ -51,7 +51,7 @@ class IconListPreference(context: Context, attrs: AttributeSet) : ListPreference super.onBindViewHolder(holder) holder?.itemView?.findViewById(R.id.preview)?.let { val selectedIndex = findIndexOfValue(value) - if (selectedIndex > 0) { + if (selectedIndex >= 0) { val drawable = mEntryDrawables[selectedIndex] it.setImageDrawable(drawable) }