From 7fdc87177674c0737315e245e08dd1d9a04e7d8a Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 26 Nov 2021 22:40:07 +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/src/main/java/io/legado/app/ui/book/toc/TocActivity.kt | 3 +++ app/src/main/res/menu/book_toc.xml | 5 +++++ 2 files changed, 8 insertions(+) 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