From d53bdbd581d93ae055cda96716bac7840f882672 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 15 Oct 2019 17:38:32 +0800 Subject: [PATCH] up --- .../app/ui/widget/page/delegate/SimulationPageDelegate.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/page/delegate/SimulationPageDelegate.kt b/app/src/main/java/io/legado/app/ui/widget/page/delegate/SimulationPageDelegate.kt index 8468b3aef..2a33d1615 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/delegate/SimulationPageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/delegate/SimulationPageDelegate.kt @@ -9,6 +9,8 @@ import io.legado.app.utils.screenshot class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageView) { + private var pageCount = 0 + init { pageView.curlView ?: let { pageView.curlView = CurlView(pageView.context) @@ -41,7 +43,7 @@ class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageVi private inner class PageProvider : CurlView.PageProvider { override val pageCount: Int - get() = 3 + get() = this@SimulationPageDelegate.pageCount override fun updatePage(page: CurlPage, width: Int, height: Int, index: Int) { when (index) {