pull/475/head
gedoor 4 years ago
parent e7e177fcd4
commit cd2addde88
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt

@ -588,6 +588,7 @@ class ReadBookActivity : ReadBookBaseActivity(),
* 自动翻页 * 自动翻页
*/ */
override fun autoPage() { override fun autoPage() {
ReadAloud.stop(this)
if (isAutoPage) { if (isAutoPage) {
autoPageStop() autoPageStop()
} else { } else {
@ -679,6 +680,7 @@ class ReadBookActivity : ReadBookBaseActivity(),
* 朗读按钮 * 朗读按钮
*/ */
override fun onClickReadAloud() { override fun onClickReadAloud() {
autoPageStop()
when { when {
!BaseReadAloudService.isRun -> ReadBook.readAloud() !BaseReadAloudService.isRun -> ReadBook.readAloud()
BaseReadAloudService.pause -> ReadAloud.resume(this) BaseReadAloudService.pause -> ReadAloud.resume(this)

Loading…
Cancel
Save