Horis 3 лет назад
Родитель
Сommit
851677d068
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

+ 1 - 1
app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

@@ -308,7 +308,7 @@ class HttpReadAloudService : BaseReadAloudService(),
             for (i in start..contentList[nowSpeak].length) {
                 if (readAloudNumber + i > textChapter.getReadLength(pageIndex + 1)) {
                     pageIndex++
-                    if (pageIndex < textChapter.pages.size) {
+                    if (pageIndex < textChapter.pageSize) {
                         ReadBook.moveToNextPage()
                     }
                     postEvent(EventBus.TTS_PROGRESS, readAloudNumber + i)