diff --git a/app/src/main/java/io/legado/app/lib/theme/prefs/ATEPreferenceCategory.kt b/app/src/main/java/io/legado/app/lib/theme/prefs/ATEPreferenceCategory.kt index 7d5a704c3..bfd000aa3 100644 --- a/app/src/main/java/io/legado/app/lib/theme/prefs/ATEPreferenceCategory.kt +++ b/app/src/main/java/io/legado/app/lib/theme/prefs/ATEPreferenceCategory.kt @@ -15,8 +15,10 @@ class ATEPreferenceCategory(context: Context, attrs: AttributeSet) : super.onBindViewHolder(holder) holder?.let { val view = it.findViewById(android.R.id.title) - if (view is TextView) { - view.setTextColor(context.accentColor)//设置title文本的颜色 + if (!view.isInEditMode) { + if (view is TextView) { + view.setTextColor(context.accentColor)//设置title文本的颜色 + } } } }