diff --git a/app/src/main/java/io/legado/app/ui/book/local/rule/TxtTocRuleAdapter.kt b/app/src/main/java/io/legado/app/ui/book/local/rule/TxtTocRuleAdapter.kt index eb555453f..dad24cc2a 100644 --- a/app/src/main/java/io/legado/app/ui/book/local/rule/TxtTocRuleAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/book/local/rule/TxtTocRuleAdapter.kt @@ -78,7 +78,7 @@ class TxtTocRuleAdapter(context: Context, private val callBack: CallBack) : private fun showMenu(view: View, position: Int) { val source = getItem(position) ?: return val popupMenu = PopupMenu(context, view) - popupMenu.inflate(R.menu.rss_source_item) + popupMenu.inflate(R.menu.txt_toc_rule_item) popupMenu.setOnMenuItemClickListener { menuItem -> when (menuItem.itemId) { R.id.menu_top -> callBack.toTop(source) diff --git a/app/src/main/res/menu/txt_toc_rule_item.xml b/app/src/main/res/menu/txt_toc_rule_item.xml new file mode 100644 index 000000000..77c3a18cd --- /dev/null +++ b/app/src/main/res/menu/txt_toc_rule_item.xml @@ -0,0 +1,16 @@ + +
\ No newline at end of file