feat: 优化代码

pull/117/head
kunfei 5 years ago
parent 01f886b7d1
commit 1e533559fe
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt

@ -420,7 +420,7 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
var textLine = relativePage(selectStart[0]).textLines[selectStart[1]]
var textChar = textLine.textChars[selectStart[2]]
upSelectedStart(textChar.start, textLine.lineBottom + relativeOffset(selectStart[0]))
textLine = relativePage(selectEnd[0]).textLines[selectEnd[0]]
textLine = relativePage(selectEnd[0]).textLines[selectEnd[1]]
textChar = textLine.textChars[selectEnd[2]]
upSelectedEnd(textChar.end, textLine.lineBottom + relativeOffset(selectEnd[0]))
upSelectChars()

Loading…
Cancel
Save