From fdb7255630ab31bd02da3f350a118ae19d00e94d Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 23 Jul 2023 13:38:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/model/ReadBook.kt | 4 ++++ .../main/java/io/legado/app/service/BaseReadAloudService.kt | 1 + 2 files changed, 5 insertions(+) diff --git a/app/src/main/java/io/legado/app/model/ReadBook.kt b/app/src/main/java/io/legado/app/model/ReadBook.kt index 3847feed5..4c40cdf53 100644 --- a/app/src/main/java/io/legado/app/model/ReadBook.kt +++ b/app/src/main/java/io/legado/app/model/ReadBook.kt @@ -184,16 +184,20 @@ object ReadBook : CoroutineScope by MainScope() { curTextChapter = nextTextChapter nextTextChapter = null if (curTextChapter == null) { + AppLog.putDebug("moveToNextChapter-章节未加载,开始加载") loadContent(durChapterIndex, upContent, false) } else if (upContent) { + AppLog.putDebug("moveToNextChapter-章节已加载,刷新视图") callBack?.upContent() } loadContent(durChapterIndex.plus(1), upContent, false) saveRead() callBack?.upMenuView() + AppLog.putDebug("moveToNextChapter-curPageChanged()") curPageChanged() return true } else { + AppLog.putDebug("跳转下一章失败,没有下一章") return false } } diff --git a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt index 47b47f816..3f00ffd30 100644 --- a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt @@ -441,6 +441,7 @@ abstract class BaseReadAloudService : BaseService(), open fun nextChapter() { ReadBook.upReadTime() + AppLog.putDebug("${ReadBook.curTextChapter?.chapter?.title} 朗读结束跳转下一章并朗读") if (!ReadBook.moveToNextChapter(true)) { stopSelf() }