From 0c674477796d73a18469dce54532a49641e18aca Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 24 Oct 2019 10:06:04 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/service/HttpReadAloudService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index b4f04a729..27d11accc 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -162,7 +162,7 @@ class HttpReadAloudService : BaseReadAloudService(), override fun onCompletion(mp: MediaPlayer?) { readAloudNumber += contentList[nowSpeak].length + 1 - if (nowSpeak < contentList.size) { + if (nowSpeak < contentList.lastIndex) { nowSpeak++ play() } else {