From 6ebcf0c35437b97d89c7b7dde3f04b5031354fbc Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 11 Dec 2022 22:46:16 +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/book/read/ReadBookActivity.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index 58187df6f..a2c37ec7b 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -261,6 +261,12 @@ class ReadBookActivity : BaseReadBookActivity(), return super.onPrepareOptionsMenu(menu) } + override fun onMenuOpened(featureId: Int, menu: Menu): Boolean { + menu.findItem(R.id.menu_same_title_removed).isChecked = + ReadBook.curTextChapter?.sameTitleRemoved == true + return super.onMenuOpened(featureId, menu) + } + /** * 更新菜单 */