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

@ -1,3 +1,15 @@
package io.legado.app.ui.widget.page package io.legado.app.ui.widget.page
data class TextChapter(val position: Int, val title: String, val pages: List<TextPage>) data class TextChapter(
val position: Int,
val title: String,
val pages: List<TextPage>
) {
fun getPage(index: Int): TextPage? {
if (index >= 0 && index < pages.size) {
return pages[index]
}
return null
}
}

Loading…
Cancel
Save