pull/32/head
kunfei 5 years ago
parent 75fce76f62
commit 6db709df6a
  1. 2
      app/src/main/java/io/legado/app/ui/widget/page/TextChapter.kt

@ -42,7 +42,7 @@ data class TextChapter(
fun getUnRead(pageIndex: Int): String { fun getUnRead(pageIndex: Int): String {
val stringBuilder = StringBuilder() val stringBuilder = StringBuilder()
if (pageIndex < pages.size) { if (pageIndex < pages.size && pages.isNotEmpty()) {
for (index in pageIndex..lastIndex()) { for (index in pageIndex..lastIndex()) {
stringBuilder.append(pages[index].text) stringBuilder.append(pages[index].text)
} }

Loading…
Cancel
Save