@ -35,7 +35,7 @@ class PageView(context: Context, attrs: AttributeSet) :
addView(curPage)
upBg()
setWillNotDraw(false)
pageFactory = TextPageFactory.create(this)
pageFactory = TextPageFactory(this)
upPageAnim()
curPage?.callBack = this
}
@ -1,13 +1,6 @@
package io.legado.app.ui.widget.page
class TextPageFactory private constructor(dataSource: DataSource) :
PageFactory<TextPage>(dataSource) {
companion object {
fun create(dataSource: DataSource): TextPageFactory {
return TextPageFactory(dataSource)
class TextPageFactory(dataSource: DataSource) : PageFactory<TextPage>(dataSource) {
override fun hasPrev(): Boolean = with(dataSource) {
return if (isScrollDelegate()) {