pull/1440/head
gedoor 3 years ago
parent fb3cafddf3
commit 7fdc871776
  1. 3
      app/src/main/java/io/legado/app/ui/book/toc/TocActivity.kt
  2. 5
      app/src/main/res/menu/book_toc.xml

@ -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<ActivityChapterListBinding, TocViewModel>() {
putExtra("chapterPos", it.durChapterPos)
})
}
R.id.menu_log -> showDialogFragment<AppLogDialog>()
}
return super.onCompatOptionsItemSelected(item)
}

@ -15,4 +15,9 @@
android:title="@string/reverse_toc"
app:showAsAction="never" />
<item
android:id="@+id/menu_log"
android:title="@string/log"
app:showAsAction="never" />
</menu>
Loading…
Cancel
Save