mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
fbc3370b4d
commit
fc9ca8049e
@ -52,8 +52,10 @@ class TTSReadAloudService : BaseReadAloudService(), TextToSpeech.OnInitListener
|
||||
|
||||
@Synchronized
|
||||
fun clearTTS() {
|
||||
textToSpeech?.stop()
|
||||
textToSpeech?.shutdown()
|
||||
textToSpeech?.runCatching {
|
||||
stop()
|
||||
shutdown()
|
||||
}
|
||||
textToSpeech = null
|
||||
ttsInitFinish = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user