Skip to content

Commit

Permalink
fix: move sign in the composition window was too small
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Mar 20, 2024
1 parent 9e295ca commit e6b402d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/osfans/trime/ime/text/Composition.kt
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ class Composition(context: Context, attrs: AttributeSet?) : TextView(context, at
ss!!.setSpan(getAlign(m), start, end, 0)
movePos[0] = start
movePos[1] = end
ss!!.setSpan(AbsoluteSizeSpan(keyTextSize), start, end, 0)
ss!!.setSpan(AbsoluteSizeSpan(sp(keyTextSize)), start, end, 0)
ss!!.setSpan(ForegroundColorSpan(keyTextColor), start, end, 0)
val suffix = CollectionUtils.obtainString(m, "end")
if (suffix.isNotEmpty()) ss!!.append(suffix)
Expand Down

0 comments on commit e6b402d

Please sign in to comment.