feat: 优化代码

pull/106/head
kunfei 5 years ago
parent fd8f05a024
commit 2844bd4c21
  1. 9
      app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt
  2. 4
      app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt

@ -105,4 +105,13 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
} }
return null return null
} }
fun selectStartMove(x: Float, y: Float) {
}
fun selectEndMove(x: Float, y: Float) {
}
} }

@ -126,11 +126,11 @@ class ContentView : FrameLayout {
} }
fun selectStartMove(x: Float, y: Float) { fun selectStartMove(x: Float, y: Float) {
content_text_view.selectStartMove(x, y)
} }
fun selectEndMove(x: Float, y: Float) { fun selectEndMove(x: Float, y: Float) {
content_text_view.selectEndMove(x, y)
} }
fun scrollTo(pos: Int?) { fun scrollTo(pos: Int?) {

Loading…
Cancel
Save