|
|
@ -1,13 +1,6 @@ |
|
|
|
package io.legado.app.ui.widget.page |
|
|
|
package io.legado.app.ui.widget.page |
|
|
|
|
|
|
|
|
|
|
|
class TextPageFactory private constructor(dataSource: DataSource) : |
|
|
|
class TextPageFactory(dataSource: DataSource) : PageFactory<TextPage>(dataSource) { |
|
|
|
PageFactory<TextPage>(dataSource) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
companion object { |
|
|
|
|
|
|
|
fun create(dataSource: DataSource): TextPageFactory { |
|
|
|
|
|
|
|
return TextPageFactory(dataSource) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override fun hasPrev(): Boolean = with(dataSource) { |
|
|
|
override fun hasPrev(): Boolean = with(dataSource) { |
|
|
|
return if (isScrollDelegate()) { |
|
|
|
return if (isScrollDelegate()) { |
|
|
|