|
|
@ -100,14 +100,14 @@ class PageView(context: Context, attrs: AttributeSet) : |
|
|
|
curPage?.setContent(it.currentPage()) |
|
|
|
curPage?.setContent(it.currentPage()) |
|
|
|
nextPage?.setContent(it.nextPage()) |
|
|
|
nextPage?.setContent(it.nextPage()) |
|
|
|
prevPage?.setContent(it.previousPage()) |
|
|
|
prevPage?.setContent(it.previousPage()) |
|
|
|
|
|
|
|
callback?.let { callback -> |
|
|
|
|
|
|
|
if (isScrollDelegate()) { |
|
|
|
|
|
|
|
curPage?.scrollTo(callback.textChapter()?.getStartLine(callback.durChapterPos())) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
callback?.let { |
|
|
|
|
|
|
|
if (isScrollDelegate()) { |
|
|
|
|
|
|
|
curPage?.scrollTo(it.textChapter()?.getStartLine(it.durChapterPos())) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun moveToPrevPage(noAnim: Boolean = true) { |
|
|
|
fun moveToPrevPage(noAnim: Boolean = true) { |
|
|
|