@@ -83,9 +83,6 @@ class Composition(
83
83
private val movableRange = intArrayOf(0 , 0 )
84
84
85
85
private val keyTextSizeSpan by lazy { AbsoluteSizeSpan (sp(keyTextSize)) }
86
- private val labelTextSizeSpan by lazy { AbsoluteSizeSpan (sp(labelTextSize)) }
87
- private val candidateTextSizeSpan by lazy { AbsoluteSizeSpan (sp(candidateTextSize)) }
88
- private val commentTextSizeSpan by lazy { AbsoluteSizeSpan (sp(commentTextSize)) }
89
86
private val keyTextColorSpan by lazy { keyTextColor?.let { ForegroundColorSpan (it) } }
90
87
private val highlightTextColorSpan by lazy { highlightTextColor?.let { ForegroundColorSpan (it) } }
91
88
private val highlightBackColorSpan by lazy { highlightBackColor?.let { BackgroundColorSpan (it) } }
@@ -333,7 +330,7 @@ class Composition(
333
330
labelColor,
334
331
labelTextSize,
335
332
)
336
- inSpans(alignmentSpan, labelSpan, labelTextSizeSpan ) { append(label) }
333
+ inSpans(alignmentSpan, labelSpan, AbsoluteSizeSpan (sp(labelTextSize)) ) { append(label) }
337
334
338
335
val candidateSpan =
339
336
CandidateSpan (
@@ -344,7 +341,7 @@ class Composition(
344
341
candidateTextColor,
345
342
candidateTextSize,
346
343
)
347
- inSpans(alignmentSpan, candidateSpan, candidateTextSizeSpan ) { append(text) }
344
+ inSpans(alignmentSpan, candidateSpan, AbsoluteSizeSpan (sp(candidateTextSize)) ) { append(text) }
348
345
currentLineLength + = text.length
349
346
350
347
if (showComment && ! candidate.comment.isNullOrEmpty()) {
@@ -358,7 +355,7 @@ class Composition(
358
355
commentTextColor,
359
356
commentTextSize,
360
357
)
361
- inSpans(alignmentSpan, commentSpan, commentTextSizeSpan ) { append(comment) }
358
+ inSpans(alignmentSpan, commentSpan, AbsoluteSizeSpan (sp(commentTextSize)) ) { append(comment) }
362
359
currentLineLength + = comment.length
363
360
}
364
361
}
0 commit comments