From af7398464b5d3d4fed3ec9015da17b0b9d8b26fb Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 2 Sep 2019 22:57:51 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/replacerule/ReplaceRuleAdapter.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/replacerule/ReplaceRuleAdapter.kt b/app/src/main/java/io/legado/app/ui/replacerule/ReplaceRuleAdapter.kt index 4ab569beb..01e14e1a1 100644 --- a/app/src/main/java/io/legado/app/ui/replacerule/ReplaceRuleAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/replacerule/ReplaceRuleAdapter.kt @@ -12,6 +12,7 @@ import androidx.recyclerview.widget.RecyclerView import io.legado.app.R import io.legado.app.data.entities.ReplaceRule import io.legado.app.help.ItemTouchCallback +import io.legado.app.lib.theme.backgroundColor import kotlinx.android.synthetic.main.item_replace_rule.view.* import org.jetbrains.anko.sdk27.listeners.onClick @@ -62,6 +63,7 @@ class ReplaceRuleAdapter(context: Context, var callBack: CallBack) : class MyViewHolder(view: View) : RecyclerView.ViewHolder(view) { fun bind(rule: ReplaceRule, callBack: CallBack) = with(itemView) { + this.setBackgroundColor(context.backgroundColor) cb_name.text = rule.name swt_enabled.isChecked = rule.isEnabled swt_enabled.onClick {