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() }