diff --git a/app/src/main/java/io/legado/app/ui/book/toc/TocActivity.kt b/app/src/main/java/io/legado/app/ui/book/toc/TocActivity.kt index 31cddf6e0..46310a27e 100644 --- a/app/src/main/java/io/legado/app/ui/book/toc/TocActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/toc/TocActivity.kt @@ -17,8 +17,10 @@ import io.legado.app.base.VMBaseActivity import io.legado.app.databinding.ActivityChapterListBinding import io.legado.app.lib.theme.accentColor import io.legado.app.lib.theme.primaryTextColor +import io.legado.app.ui.about.AppLogDialog import io.legado.app.utils.applyTint import io.legado.app.utils.gone +import io.legado.app.utils.showDialogFragment import io.legado.app.utils.viewbindingdelegate.viewBinding import io.legado.app.utils.visible @@ -80,6 +82,7 @@ class TocActivity : VMBaseActivity() { putExtra("chapterPos", it.durChapterPos) }) } + R.id.menu_log -> showDialogFragment() } return super.onCompatOptionsItemSelected(item) } diff --git a/app/src/main/res/menu/book_toc.xml b/app/src/main/res/menu/book_toc.xml index 59efd4075..d5c6dadf0 100644 --- a/app/src/main/res/menu/book_toc.xml +++ b/app/src/main/res/menu/book_toc.xml @@ -15,4 +15,9 @@ android:title="@string/reverse_toc" app:showAsAction="never" /> + + \ No newline at end of file