From 78988d72e8aca353938924646321d7bb975f74e8 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 6 Feb 2020 22:07:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/replacerule/ReplaceRuleAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ece158dd9..5fc617f38 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 @@ -92,6 +92,7 @@ class ReplaceRuleAdapter(context: Context, var callBack: CallBack) : } else { bundle.keySet().map { when (it) { + "selected" -> cb_name.isChecked = selectedIds.contains(item.id) "name", "group" -> if (item.group.isNullOrEmpty()) { cb_name.text = item.name @@ -100,7 +101,6 @@ class ReplaceRuleAdapter(context: Context, var callBack: CallBack) : String.format("%s (%s)", item.name, item.group) } "enabled" -> swt_enabled.isChecked = item.isEnabled - "selected" -> cb_name.isChecked = selectedIds.contains(item.id) } } }