From 4d7cb5c8b4f24f94b350979c082955d39bbefac9 Mon Sep 17 00:00:00 2001 From: Horis <8674809+821938089@users.noreply.github.com> Date: Sat, 6 Dec 2025 22:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20#5593?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/model/AudioPlay.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/AudioPlay.kt b/app/src/main/java/io/legado/app/model/AudioPlay.kt index 8df65c4d1..29c72ea62 100644 --- a/app/src/main/java/io/legado/app/model/AudioPlay.kt +++ b/app/src/main/java/io/legado/app/model/AudioPlay.kt @@ -146,6 +146,11 @@ object AudioPlay : CoroutineScope by MainScope() { removeLoading(index) return } + if (chapter.isVolume) { + skipTo(index + 1) + removeLoading(index) + return + } upLoading(true) WebBook.getContent(this, bookSource, book, chapter) .onSuccess { content -> @@ -212,7 +217,8 @@ object AudioPlay : CoroutineScope by MainScope() { val book = book ?: return durChapter = appDb.bookChapterDao.getChapter(book.bookUrl, durChapterIndex) durAudioSize = durChapter?.end?.toInt() ?: 0 - postEvent(EventBus.AUDIO_SUB_TITLE, durChapter?.title ?: appCtx.getString(R.string.data_loading)) + val title = durChapter?.title ?: appCtx.getString(R.string.data_loading) + postEvent(EventBus.AUDIO_SUB_TITLE, title) postEvent(EventBus.AUDIO_SIZE, durAudioSize) postEvent(EventBus.AUDIO_PROGRESS, durChapterPos) }