From ecd9d4feb8b234ec5b2804a0a7c955b350b86dca Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 26 Aug 2019 09:03:31 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/service/ReadAloudService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 cc2cf51e9..e769f7991 100644 --- a/app/src/main/java/io/legado/app/service/ReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/ReadAloudService.kt @@ -158,7 +158,7 @@ class ReadAloudService : BaseService(), TextToSpeech.OnInitListener, AudioManage } } - private fun newReadAloud(dataKey: String?, paly: Boolean) { + private fun newReadAloud(dataKey: String?, play: Boolean) { dataKey?.let { textChapter = IntentDataHelp.getData(dataKey) as? TextChapter textChapter?.let { @@ -166,7 +166,7 @@ class ReadAloudService : BaseService(), TextToSpeech.OnInitListener, AudioManage readAloudNumber = it.getReadLength(pageIndex) contentList.clear() contentList.addAll(it.getUnRead(pageIndex).split("\n")) - if (paly) playTTS() + if (play) playTTS() } ?: stopSelf() } ?: stopSelf() }