diff --git a/app/src/main/java/io/legado/app/ui/widget/page/TextPageFactory.kt b/app/src/main/java/io/legado/app/ui/widget/page/TextPageFactory.kt index 332537f48..a3cfa8599 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/TextPageFactory.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/TextPageFactory.kt @@ -19,7 +19,8 @@ class TextPageFactory private constructor(dataSource: DataSource) : } override fun pageAt(index: Int): TextPage { - TODO("todo...") + return dataSource.getCurrentChapter()?.page(index) + ?: TextPage(index = index, title = "index:$index") } override fun moveToFirst() {