pull/37/head
kunfei 5 years ago
parent e031714436
commit 262d9c0b42
  1. 5
      app/src/main/java/io/legado/app/ui/widget/page/curl/CurlView.kt
  2. 3
      app/src/main/java/io/legado/app/ui/widget/page/delegate/SimulationPageDelegate.kt

@ -82,10 +82,7 @@ class CurlView : GLSurfaceView, View.OnTouchListener, CurlRenderer.Observer {
if (mAllowLastPageCurl) { if (mAllowLastPageCurl) {
min(index, mPageProvider!!.pageCount) min(index, mPageProvider!!.pageCount)
} else { } else {
min( min(index, mPageProvider!!.pageCount - 1)
index,
mPageProvider!!.pageCount - 1
)
} }
} }
updatePages() updatePages()

@ -39,8 +39,7 @@ class SimulationPageDelegate(pageView: PageView) : PageDelegate(pageView) {
get() = 1 get() = 1
override fun updatePage(page: CurlPage, width: Int, height: Int, index: Int) { override fun updatePage(page: CurlPage, width: Int, height: Int, index: Int) {
val front = curPage?.screenshot() page.setTexture(curPage?.screenshot(), CurlPage.SIDE_BOTH)
page.setTexture(front, CurlPage.SIDE_BOTH)
} }
} }

Loading…
Cancel
Save