From 40e74961477730238a5b1c6fc8e10bfe2f2e1c6e Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 6 Sep 2019 17:56:28 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/service/ReadAloudService.kt | 5 +++++ 1 file changed, 5 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 e6b62b68f..de01ff154 100644 --- a/app/src/main/java/io/legado/app/service/ReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/ReadAloudService.kt @@ -295,6 +295,11 @@ class ReadAloudService : BaseService(), TextToSpeech.OnInitListener, nowSpeak-- readAloudNumber -= contentList[nowSpeak].length.minus(1) playTTS() + textChapter?.let { + if (readAloudNumber < it.getReadLength(pageIndex)) { + postEvent(Bus.TTS_TURN_PAGE, -1) + } + } } }