diff --git a/app/src/main/java/io/legado/app/service/AudioPlayService.kt b/app/src/main/java/io/legado/app/service/AudioPlayService.kt index 981c413f2..6b2137591 100644 --- a/app/src/main/java/io/legado/app/service/AudioPlayService.kt +++ b/app/src/main/java/io/legado/app/service/AudioPlayService.kt @@ -299,6 +299,7 @@ class AudioPlayService : BaseService(), private fun moveToPrev() { if (AudioPlay.durChapterIndex > 0) { + mediaPlayer.pause() AudioPlay.durChapterIndex-- AudioPlay.durPageIndex = 0 AudioPlay.book?.durChapterIndex = AudioPlay.durChapterIndex @@ -310,6 +311,7 @@ class AudioPlayService : BaseService(), private fun moveToNext() { if (AudioPlay.durChapterIndex < AudioPlay.chapterSize - 1) { + mediaPlayer.pause() AudioPlay.durChapterIndex++ AudioPlay.durPageIndex = 0 AudioPlay.book?.durChapterIndex = AudioPlay.durChapterIndex