From c0b45728d6c1a00707557950897f93ab5dbc668e Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 20 Sep 2021 23:57:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E6=9C=97=E8=AF=BB=E9=87=87?= =?UTF-8?q?=E7=94=A8=E8=AE=A1=E7=AE=97=E5=B9=B3=E5=9D=87=E6=9C=97=E8=AF=BB?= =?UTF-8?q?=E9=80=9F=E5=BA=A6=E5=8F=8A=E6=97=B6=E7=BF=BB=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/HttpReadAloudService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }