pull/37/head
kunfei 5 years ago
parent beb5850010
commit 4cbff04209
  1. 2
      app/src/main/java/io/legado/app/ui/widget/page/delegate/SimulationPageDelegate.kt

@ -5,7 +5,6 @@ import android.view.MotionEvent
import io.legado.app.ui.widget.page.PageView import io.legado.app.ui.widget.page.PageView
import io.legado.app.ui.widget.page.curl.CurlPage import io.legado.app.ui.widget.page.curl.CurlPage
import io.legado.app.ui.widget.page.curl.CurlView import io.legado.app.ui.widget.page.curl.CurlView
import io.legado.app.utils.invisible
import io.legado.app.utils.screenshot import io.legado.app.utils.screenshot
class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageView) { class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageView) {
@ -13,7 +12,6 @@ class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageVi
init { init {
pageView.curlView ?: let { pageView.curlView ?: let {
pageView.curlView = CurlView(pageView.context) pageView.curlView = CurlView(pageView.context)
pageView.curlView?.invisible()
pageView.addView(pageView.curlView) pageView.addView(pageView.curlView)
pageView.curlView?.mPageProvider = PageProvider() pageView.curlView?.mPageProvider = PageProvider()
pageView.curlView?.setSizeChangedObserver(SizeChangedObserver()) pageView.curlView?.setSizeChangedObserver(SizeChangedObserver())

Loading…
Cancel
Save