|
|
@ -250,7 +250,7 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at |
|
|
|
selectStart[2] != charIndex |
|
|
|
selectStart[2] != charIndex |
|
|
|
) { |
|
|
|
) { |
|
|
|
if (selectToInt(relativePos, lineIndex, charIndex) |
|
|
|
if (selectToInt(relativePos, lineIndex, charIndex) |
|
|
|
< selectToInt(selectEnd) |
|
|
|
<= selectToInt(selectEnd) |
|
|
|
) { |
|
|
|
) { |
|
|
|
selectStart[0] = relativePos |
|
|
|
selectStart[0] = relativePos |
|
|
|
selectStart[1] = lineIndex |
|
|
|
selectStart[1] = lineIndex |
|
|
@ -276,7 +276,7 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at |
|
|
|
|| selectEnd[2] != charIndex |
|
|
|
|| selectEnd[2] != charIndex |
|
|
|
) { |
|
|
|
) { |
|
|
|
if (selectToInt(relativePos, lineIndex, charIndex) |
|
|
|
if (selectToInt(relativePos, lineIndex, charIndex) |
|
|
|
> selectToInt(selectStart) |
|
|
|
>= selectToInt(selectStart) |
|
|
|
) { |
|
|
|
) { |
|
|
|
selectEnd[0] = relativePos |
|
|
|
selectEnd[0] = relativePos |
|
|
|
selectEnd[1] = lineIndex |
|
|
|
selectEnd[1] = lineIndex |
|
|
|