diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index 74ce34867..23d1a6d43 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -222,6 +222,7 @@ class HttpReadAloudService : BaseReadAloudService(), } private fun upPlayPos() { + playIndexJob?.cancel() textChapter?.let { playIndexJob = launch { val speakTextLength = contentList[nowSpeak].length @@ -254,7 +255,6 @@ class HttpReadAloudService : BaseReadAloudService(), super.play() if (pause) return mediaPlayer.start() - playIndexJob?.cancel() upPlayPos() }