|
|
@@ -212,7 +212,7 @@ object ReadBook : CoroutineScope by MainScope() {
|
|
|
saveRead()
|
|
|
callBack?.upMenuView()
|
|
|
AppLog.putDebug("moveToNextChapter-curPageChanged()")
|
|
|
- curPageChanged()
|
|
|
+ curPageChanged(false)
|
|
|
return true
|
|
|
} else {
|
|
|
AppLog.putDebug("跳转下一章失败,没有下一章")
|
|
|
@@ -238,7 +238,7 @@ object ReadBook : CoroutineScope by MainScope() {
|
|
|
loadContent(durChapterIndex.minus(1), upContent, false)
|
|
|
saveRead()
|
|
|
callBack?.upMenuView()
|
|
|
- curPageChanged()
|
|
|
+ curPageChanged(false)
|
|
|
return true
|
|
|
} else {
|
|
|
return false
|
|
|
@@ -263,11 +263,11 @@ object ReadBook : CoroutineScope by MainScope() {
|
|
|
/**
|
|
|
* 当前页面变化
|
|
|
*/
|
|
|
- private fun curPageChanged() {
|
|
|
+ private fun curPageChanged(pauseReadAloud: Boolean = true) {
|
|
|
callBack?.pageChanged()
|
|
|
if (BaseReadAloudService.isRun) {
|
|
|
val scrollPageAnim = pageAnim() == 3
|
|
|
- if (scrollPageAnim) {
|
|
|
+ if (scrollPageAnim && pauseReadAloud) {
|
|
|
ReadAloud.pause(appCtx)
|
|
|
} else {
|
|
|
readAloud(!BaseReadAloudService.pause)
|