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