diff --git a/app/src/main/java/io/legado/app/ui/widget/prefs/Preference.kt b/app/src/main/java/io/legado/app/ui/widget/prefs/Preference.kt index 7ce8c9dfb..042b03868 100644 --- a/app/src/main/java/io/legado/app/ui/widget/prefs/Preference.kt +++ b/app/src/main/java/io/legado/app/ui/widget/prefs/Preference.kt @@ -66,7 +66,7 @@ class Preference(context: Context, attrs: AttributeSet) : } val iconView = it.findViewById(R.id.preference_icon) if (iconView is ImageView) { - iconView.isVisible = icon != null && icon.isVisible + iconView.isVisible = icon != null iconView.setImageDrawable(icon) iconView.setColorFilter(context.accentColor) }