diff --git a/app/src/main/java/io/legado/app/service/ReadAloudService.kt b/app/src/main/java/io/legado/app/service/ReadAloudService.kt index a496a2816..bcb6cd6ee 100644 --- a/app/src/main/java/io/legado/app/service/ReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/ReadAloudService.kt @@ -104,6 +104,7 @@ class ReadAloudService : BaseService(), TextToSpeech.OnInitListener, AudioManage override fun onDestroy() { textToSpeech?.stop() + textToSpeech?.shutdown() isRun = false unregisterReceiver(broadcastReceiver) postEvent(Bus.ALOUD_STATE, Status.STOP) @@ -214,6 +215,7 @@ class ReadAloudService : BaseService(), TextToSpeech.OnInitListener, AudioManage private fun pauseReadAloud(pause: Boolean) { this.pause = pause textToSpeech?.stop() + ReadAloudNotification.upNotification(this) } private fun resumeReadAloud() {