Skip to content
Permalink
Browse files
优化
  • Loading branch information
gedoor committed Oct 14, 2021
1 parent 9590bc0 commit 57e03b706a4ff8e00182f0290e1c16be51e28ce6
@@ -14,6 +14,7 @@
**2021/10/14**

* 修复遇到一些存标点段朗读出错后不继续的问题
* 朗读出错记录错误日志,现在很多界面的菜单里都可以打开日志

**2021/10/10**

@@ -35,8 +35,8 @@ import io.legado.app.model.ReadAloud
import io.legado.app.model.ReadBook
import io.legado.app.receiver.TimeBatteryReceiver
import io.legado.app.service.BaseReadAloudService
import io.legado.app.ui.about.AppLogDialog
import io.legado.app.ui.book.changesource.ChangeSourceDialog
import io.legado.app.ui.book.info.BookInfoActivity
import io.legado.app.ui.book.read.config.*
import io.legado.app.ui.book.read.config.BgTextConfigDialog.Companion.BG_COLOR
import io.legado.app.ui.book.read.config.BgTextConfigDialog.Companion.TEXT_COLOR
@@ -272,12 +272,7 @@ class ReadBookActivity : ReadBookBaseActivity(),
binding.readView.upPageAnim()
ReadBook.loadContent(false)
}
R.id.menu_book_info -> ReadBook.book?.let {
startActivity<BookInfoActivity> {
putExtra("name", it.name)
putExtra("author", it.author)
}
}
R.id.menu_log -> showDialogFragment<AppLogDialog>()
R.id.menu_toc_regex -> showDialogFragment(
TocRegexDialog(ReadBook.book?.tocUrl)
)
@@ -23,6 +23,7 @@ import io.legado.app.help.*
import io.legado.app.lib.dialogs.alert
import io.legado.app.lib.theme.*
import io.legado.app.model.ReadBook
import io.legado.app.ui.book.info.BookInfoActivity
import io.legado.app.ui.browser.WebViewActivity
import io.legado.app.ui.widget.seekbar.SeekBarChangeListener
import io.legado.app.utils.*
@@ -157,6 +158,14 @@ class ReadMenu @JvmOverloads constructor(
}

private fun bindEvent() = binding.run {
titleBar.toolbar.setOnClickListener {
ReadBook.book?.let {
context.startActivity<BookInfoActivity> {
putExtra("name", it.name)
putExtra("author", it.author)
}
}
}
val chapterViewClickListener = OnClickListener {
if (ReadBook.isLocalBook) {
return@OnClickListener
@@ -94,8 +94,8 @@
app:showAsAction="never" />

<item
android:id="@+id/menu_book_info"
android:title="@string/book_info"
android:id="@+id/menu_log"
android:title="@string/log"
app:showAsAction="never" />

<item

0 comments on commit 57e03b7

Please sign in to comment.