|
|
@ -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) |
|
|
|