pull/37/head
kunfei 5 years ago
parent c8040a4278
commit d53bdbd581
  1. 4
      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) {

Loading…
Cancel
Save