From 7334ae43d680f7935b84213c862f2f7795adecc9 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 25 Aug 2019 16:20:31 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/service/ReadAloudService.kt | 2 ++ 1 file changed, 2 insertions(+) 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() {