mirror of
https://github.com/gedoor/legado.git
synced 2024-07-19 01:17:25 +08:00
优化
This commit is contained in:
parent
7e2281fee5
commit
2ab4fe6c03
@ -476,7 +476,7 @@ object ChapterProvider {
|
|||||||
}
|
}
|
||||||
val residualWidth = visibleWidth - desiredWidth
|
val residualWidth = visibleWidth - desiredWidth
|
||||||
val spaceSize = words.filter { it == " " }.size
|
val spaceSize = words.filter { it == " " }.size
|
||||||
if (spaceSize > 0) {
|
if (spaceSize > 1) {
|
||||||
val d = residualWidth / spaceSize
|
val d = residualWidth / spaceSize
|
||||||
var x = startX
|
var x = startX
|
||||||
words.forEachIndexed { index, char ->
|
words.forEachIndexed { index, char ->
|
||||||
|
Loading…
Reference in New Issue
Block a user