|
|
@ -456,11 +456,14 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun cancelSelect() { |
|
|
|
fun cancelSelect() { |
|
|
|
textPage.textLines.forEach { textLine -> |
|
|
|
val last = if (ReadBookConfig.isScroll) 2 else 0 |
|
|
|
|
|
|
|
for (relativePos in 0..last) { |
|
|
|
|
|
|
|
relativePage(relativePos).textLines.forEach { textLine -> |
|
|
|
textLine.textChars.forEach { |
|
|
|
textLine.textChars.forEach { |
|
|
|
it.selected = false |
|
|
|
it.selected = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
invalidate() |
|
|
|
invalidate() |
|
|
|
callBack.onCancelSelect() |
|
|
|
callBack.onCancelSelect() |
|
|
|
} |
|
|
|
} |
|
|
|