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 0c552bb75..d64bf4741 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 @@ -40,10 +40,14 @@ class SimulationPageDelegate(pageView: PageView) : PageDelegate(pageView) { private inner class PageProvider : CurlView.PageProvider { override val pageCount: Int - get() = 1 + get() = 3 override fun updatePage(page: CurlPage, width: Int, height: Int, index: Int) { - page.setTexture(curPage?.screenshot(), CurlPage.SIDE_BOTH) + when (index) { + 0 -> page.setTexture(prevPage?.screenshot(), CurlPage.SIDE_BOTH) + 1 -> page.setTexture(curPage?.screenshot(), CurlPage.SIDE_BOTH) + 2 -> page.setTexture(nextPage?.screenshot(), CurlPage.SIDE_BOTH) + } } }