pull/48/head
kunfei 5 years ago
parent 08a563e7b3
commit 413f8a127e
  1. 2
      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

Loading…
Cancel
Save