From 413f8a127ec2dc0973f60beca055ce242adc272b Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 9 Nov 2019 16:32:23 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/service/AudioPlayService.kt | 2 ++ 1 file changed, 2 insertions(+) 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