pull/414/head
gedoor 4 years ago
parent 6ba5b39296
commit 8e1f5cf56d
  1. 2
      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()
}

Loading…
Cancel
Save