feat: 优化代码

pull/117/head
kunfei 5 years ago
parent d400a67f53
commit 1cb1c3b2ea
  1. 1
      app/src/main/java/io/legado/app/ui/book/read/page/content/BaseContentTextView.kt
  2. 1
      app/src/main/java/io/legado/app/ui/book/read/page/content/ContentTextView.kt

@ -37,7 +37,6 @@ abstract class BaseContentTextView(context: Context, attrs: AttributeSet?) : Vie
protected val pageFactory: TextPageFactory get() = callBack.pageFactory
protected val maxScrollOffset = 100f
protected var pageOffset = 0f
protected var linePos = 0
init {
callBack = activity as CallBack

@ -89,7 +89,6 @@ class ContentTextView(context: Context, attrs: AttributeSet?) :
fun resetPageOffset() {
pageOffset = 0f
linePos = 0
}
fun selectText(x: Float, y: Float, select: (lineIndex: Int, charIndex: Int) -> Unit) {

Loading…
Cancel
Save