From 8d812e18f66290431bba30bf88cfa74a94bc5560 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 8 Sep 2019 17:36:57 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/service/ReadAloudService.kt | 3 +-- 1 file changed, 1 insertion(+), 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 604c27830..cdad6785d 100644 --- a/app/src/main/java/io/legado/app/service/ReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/ReadAloudService.kt @@ -423,14 +423,13 @@ class ReadAloudService : BaseService(), TextToSpeech.OnInitListener, private inner class TTSUtteranceListener : UtteranceProgressListener() { override fun onStart(s: String) { - postEvent(Bus.TTS_START, readAloudNumber + 1) textChapter?.let { if (readAloudNumber + 1 > it.getReadLength(pageIndex + 1)) { pageIndex++ postEvent(Bus.TTS_TURN_PAGE, 1) - postEvent(Bus.TTS_START, readAloudNumber + 1) } } + postEvent(Bus.TTS_START, readAloudNumber + 1) } override fun onDone(s: String) {