From 8e1f5cf56d076ec254539706e052b74da9678c80 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 7 Oct 2020 15:18:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/help/ReadAloud.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/service/help/ReadAloud.kt b/app/src/main/java/io/legado/app/service/help/ReadAloud.kt index b25c270c3..01197d441 100644 --- a/app/src/main/java/io/legado/app/service/help/ReadAloud.kt +++ b/app/src/main/java/io/legado/app/service/help/ReadAloud.kt @@ -18,7 +18,6 @@ object ReadAloud { private fun getReadAloudClass(): Class<*> { val spId = App.INSTANCE.getPrefLong(PreferKey.speakEngine) httpTTS = App.db.httpTTSDao().get(spId) - stop(App.INSTANCE) return if (httpTTS != null) { HttpReadAloudService::class.java } else { @@ -27,6 +26,7 @@ object ReadAloud { } fun upReadAloudClass() { + stop(App.INSTANCE) aloudClass = getReadAloudClass() }