From 5db61df0b2014a9151ba73d29c105797e5442374 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 24 Oct 2019 11:28:20 +0800 Subject: [PATCH] up --- .../java/io/legado/app/service/HttpReadAloudService.kt | 7 +++++++ 1 file changed, 7 insertions(+) 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 8e97c5262..2a29b06c9 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -133,6 +133,13 @@ class HttpReadAloudService : BaseReadAloudService(), } override fun upSpeechRate(reset: Boolean) { + job?.cancel() + mediaPlayer.reset() + for (i in 0 until nowSpeak) { + contentList.removeAt(0) + } + nowSpeak = 0 + playingIndex = -1 play() }