pull/32/head
kunfei 5 years ago
parent 22b1238bd2
commit 63641f47d9
  1. 6
      app/src/main/java/io/legado/app/ui/widget/page/TextChapter.kt

@ -5,11 +5,15 @@ data class TextChapter(
val title: String,
val pages: List<TextPage>
) {
fun getPage(index: Int): TextPage? {
fun page(index: Int): TextPage? {
if (index >= 0 && index < pages.size) {
return pages[index]
}
return null
}
fun pageSize(): Int {
return pages.size
}
}

Loading…
Cancel
Save