mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -461,12 +461,16 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
|
||||
invalidate()
|
||||
}
|
||||
|
||||
private fun upSelectedStart(x: Float, y: Float, top: Float) = callBack.apply {
|
||||
upSelectedStart(x, y + headerHeight, top + headerHeight)
|
||||
private fun upSelectedStart(x: Float, y: Float, top: Float) {
|
||||
callBack.run {
|
||||
upSelectedStart(x, y + headerHeight, top + headerHeight)
|
||||
}
|
||||
}
|
||||
|
||||
private fun upSelectedEnd(x: Float, y: Float) = callBack.apply {
|
||||
upSelectedEnd(x, y + headerHeight)
|
||||
private fun upSelectedEnd(x: Float, y: Float) {
|
||||
callBack.run {
|
||||
upSelectedEnd(x, y + headerHeight)
|
||||
}
|
||||
}
|
||||
|
||||
fun cancelSelect(fromSearchExit: Boolean = false) {
|
||||
|
||||
Reference in New Issue
Block a user