From c90e50c99cfa5650f9ff936dd3dd0d146f7619a4 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 15 Oct 2019 19:55:09 +0800 Subject: [PATCH] up --- .../app/ui/widget/page/delegate/SimulationPageDelegate.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 2a33d1615..d7ee69211 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,15 +9,13 @@ 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) pageView.addView(pageView.curlView) pageView.curlView?.mPageProvider = PageProvider() pageView.curlView?.setSizeChangedObserver(SizeChangedObserver()) - pageView.curlView?.currentIndex = 0 + pageView.curlView?.currentIndex = 1 } } @@ -43,7 +41,7 @@ class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageVi private inner class PageProvider : CurlView.PageProvider { override val pageCount: Int - get() = this@SimulationPageDelegate.pageCount + get() = 3 override fun updatePage(page: CurlPage, width: Int, height: Int, index: Int) { when (index) {