From 8df8506e976892347b7c450df131b743b8eed03a Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 13 Feb 2020 13:57:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/widget/prefs/IconListPreference.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }