feat: 优化

pull/209/head
kunfei 5 years ago
parent 0dcc7ca840
commit bc4422a3ae
  1. 5
      app/src/main/java/io/legado/app/service/TTSReadAloudService.kt

@ -69,10 +69,7 @@ class TTSReadAloudService : BaseReadAloudService(), TextToSpeech.OnInitListener
@Synchronized
override fun play() {
if (contentList.isEmpty() || !ttsInitFinish) {
return
}
if (requestFocus()) {
if (contentList.isNotEmpty() && ttsInitFinish && requestFocus()) {
MediaHelp.playSilentSound(this)
super.play()
textToSpeech?.stop()

Loading…
Cancel
Save