|
|
@ -118,9 +118,10 @@ class PageView(context: Context, attrs: AttributeSet) : |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun upContent(relativePosition: Int, resetPageOffset: Boolean) { |
|
|
|
override fun upContent(relativePosition: Int, resetPageOffset: Boolean) { |
|
|
|
if (ReadBookConfig.isScroll) { |
|
|
|
if (ReadBookConfig.isScroll && !callBack.isAutoPage) { |
|
|
|
curPage.setContent(pageFactory.currentPage, resetPageOffset) |
|
|
|
curPage.setContent(pageFactory.currentPage, resetPageOffset) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
curPage.resetPageOffset() |
|
|
|
when (relativePosition) { |
|
|
|
when (relativePosition) { |
|
|
|
-1 -> prevPage.setContent(pageFactory.prevPage) |
|
|
|
-1 -> prevPage.setContent(pageFactory.prevPage) |
|
|
|
1 -> nextPage.setContent(pageFactory.nextPage) |
|
|
|
1 -> nextPage.setContent(pageFactory.nextPage) |
|
|
|