|
|
@ -286,7 +286,7 @@ class ReadView(context: Context, attrs: AttributeSet) : |
|
|
|
var lineEnd = lineIndex |
|
|
|
var lineEnd = lineIndex |
|
|
|
for (index in lineIndex - 1 downTo 0) { |
|
|
|
for (index in lineIndex - 1 downTo 0) { |
|
|
|
val textLine = page.getLine(index) |
|
|
|
val textLine = page.getLine(index) |
|
|
|
if (textLine.isLastLine) { |
|
|
|
if (textLine.isParagraphEnd) { |
|
|
|
break |
|
|
|
break |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
stringBuilder.insert(0, textLine.text) |
|
|
|
stringBuilder.insert(0, textLine.text) |
|
|
@ -298,7 +298,7 @@ class ReadView(context: Context, attrs: AttributeSet) : |
|
|
|
val textLine = page.getLine(index) |
|
|
|
val textLine = page.getLine(index) |
|
|
|
stringBuilder.append(textLine.text) |
|
|
|
stringBuilder.append(textLine.text) |
|
|
|
lineEnd += 1 |
|
|
|
lineEnd += 1 |
|
|
|
if (textLine.isLastLine) { |
|
|
|
if (textLine.isParagraphEnd) { |
|
|
|
break |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|