From 207bb56f56f172e5899fc83f4ecb91aef95513d6 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 20 Nov 2021 10:59:36 +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 --- .../app/ui/book/local/rule/TxtTocRuleAdapter.kt | 2 +- app/src/main/res/menu/txt_toc_rule_item.xml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/menu/txt_toc_rule_item.xml 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