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 {