diff --git a/app/src/main/java/io/legado/app/ui/replacerule/ReplaceRuleActivity.kt b/app/src/main/java/io/legado/app/ui/replacerule/ReplaceRuleActivity.kt index 2579cf387..3242e1e2b 100644 --- a/app/src/main/java/io/legado/app/ui/replacerule/ReplaceRuleActivity.kt +++ b/app/src/main/java/io/legado/app/ui/replacerule/ReplaceRuleActivity.kt @@ -18,7 +18,6 @@ import io.legado.app.data.entities.ReplaceRule import io.legado.app.help.ItemTouchCallback import io.legado.app.lib.theme.ATH import io.legado.app.utils.getViewModel -import kotlinx.android.synthetic.main.activity_book_source.* import kotlinx.android.synthetic.main.activity_replace_rule.* import org.jetbrains.anko.doAsync @@ -51,11 +50,11 @@ class ReplaceRuleActivity : VMBaseActivity(R.layout.activi } private fun initRecyclerView() { - ATH.applyEdgeEffectColor(rv_replace_rule) - rv_replace_rule.layoutManager = LinearLayoutManager(this) + ATH.applyEdgeEffectColor(recycler_view) + recycler_view.layoutManager = LinearLayoutManager(this) adapter = ReplaceRuleAdapter(this, this) - rv_replace_rule.adapter = adapter - rv_replace_rule.addItemDecoration( + recycler_view.adapter = adapter + recycler_view.addItemDecoration( DividerItemDecoration(this, DividerItemDecoration.VERTICAL).apply { ContextCompat.getDrawable(baseContext, R.drawable.ic_divider)?.let { this.setDrawable(it) diff --git a/app/src/main/res/layout/activity_replace_rule.xml b/app/src/main/res/layout/activity_replace_rule.xml index 24e331018..4c3ceff0f 100644 --- a/app/src/main/res/layout/activity_replace_rule.xml +++ b/app/src/main/res/layout/activity_replace_rule.xml @@ -14,7 +14,7 @@ app:title="@string/replace_purify" />