@ -47,13 +47,11 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
init {
callBack = activity as CallBack
contentDescription = textPage.text
}
fun setContent(pageData: PageData) {
this.textChapter = pageData.textChapter
this.textPage = pageData.textPage
invalidate()
@ -226,6 +226,10 @@ class ContentView(context: Context) : FrameLayout(context) {
content_text_view.setContent(pageData)
fun setContentDescription(content: String) {
content_text_view.contentDescription = content
fun resetPageOffset() {
content_text_view.resetPageOffset()
@ -373,6 +373,7 @@ class PageView(context: Context, attrs: AttributeSet) :
override fun upContent(relativePosition: Int, resetPageOffset: Boolean) {
curPage.setContentDescription(pageFactory.curData.textPage.text)
if (isScroll && !callBack.isAutoPage) {
curPage.setContent(pageFactory.curData, resetPageOffset)
} else {