优化
This commit is contained in:
@@ -35,7 +35,11 @@ class TTSReadAloudService : BaseReadAloudService(), TextToSpeech.OnInitListener
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
initTts()
|
||||
kotlin.runCatching {
|
||||
initTts()
|
||||
}.onFailure {
|
||||
AppLog.put("${getString(R.string.tts_init_failed)}\n$it", it, true)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user