From 3c0b6a3d2902aeb36a42186f3e05e5108dfb047e Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 1 Sep 2019 18:26:25 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/widget/page/TextPageFactory.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {