feat: 优化代码

pull/115/head
kunfei 5 years ago
parent e77e67696b
commit 30be66aeae
  1. 13
      app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt

@ -131,7 +131,20 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
}
val cHeight = if (textPage.height > 0) textPage.height else height
if (offset > 0 && pageOffset > cHeight) {
}
}
private fun switchToPageOffset(offset: Int) {
when (offset) {
1 -> {
}
-1 -> {
}
}
}
fun selectText(x: Float, y: Float): Boolean {

Loading…
Cancel
Save