修复正文内容TalkBack不对的bug

pull/478/head
gedoor 4 years ago
parent 5277c21fdd
commit 9e2e99687d
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt

@ -191,11 +191,13 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
textPage = pageFactory.curData.textPage textPage = pageFactory.curData.textPage
pageOffset -= textPage.height.toInt() pageOffset -= textPage.height.toInt()
upView?.invoke(textPage) upView?.invoke(textPage)
contentDescription = textPage.text
} else if (pageOffset < -textPage.height) { } else if (pageOffset < -textPage.height) {
pageOffset += textPage.height.toInt() pageOffset += textPage.height.toInt()
pageFactory.moveToNext(false) pageFactory.moveToNext(false)
textPage = pageFactory.curData.textPage textPage = pageFactory.curData.textPage
upView?.invoke(textPage) upView?.invoke(textPage)
contentDescription = textPage.text
} }
invalidate() invalidate()
} }

Loading…
Cancel
Save