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) + } + /** * 更新菜单 */