feat: 修复bug

pull/241/head
gedoor 5 years ago
parent 5bfecea0ce
commit 41b5e27f0f
  1. 2
      app/src/main/java/io/legado/app/service/TTSReadAloudService.kt

@ -72,7 +72,7 @@ class TTSReadAloudService : BaseReadAloudService(), TextToSpeech.OnInitListener
execute { execute {
MediaHelp.playSilentSound(this@TTSReadAloudService) MediaHelp.playSilentSound(this@TTSReadAloudService)
textToSpeech?.let { textToSpeech?.let {
it.stop() it.speak("", TextToSpeech.QUEUE_FLUSH, null, null)
for (i in nowSpeak until contentList.size) { for (i in nowSpeak until contentList.size) {
it.speak( it.speak(
contentList[i], contentList[i],

Loading…
Cancel
Save