edit PreferenceCategory.kt

pull/854/head
gedoor 4 years ago
parent 3d72e65f4b
commit cca8943fe4
  1. 1
      app/src/main/java/io/legado/app/ui/widget/prefs/PreferenceCategory.kt

@ -28,7 +28,6 @@ class PreferenceCategory(context: Context, attrs: AttributeSet) : PreferenceCate
if (view is TextView) { // && !view.isInEditMode
view.text = title
if (view.isInEditMode) return
view.setBackgroundColor(context.backgroundColor)
view.setTextColor(context.accentColor)
view.isVisible = title != null && title.isNotEmpty()

Loading…
Cancel
Save