Skip to content

Commit e74c76b

Browse files
Fix. If setting "Show numbers on a separate row" is turned ON, small top special characters are not displayed for numeric keyboard
1 parent 57b3487 commit e74c76b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
598598
label, (key.width / 2).toFloat(), key.height / 2 + (paint.textSize - paint.descent()) / 2, paint
599599
)
600600

601-
if (key.topSmallNumber.isNotEmpty() && !context.config.showNumbersRow) {
601+
if (key.topSmallNumber.isNotEmpty() && !(context.config.showNumbersRow && Regex("\\d").matches(key.topSmallNumber))) {
602602
canvas.drawText(key.topSmallNumber, key.width - mTopSmallNumberMarginWidth, mTopSmallNumberMarginHeight, smallLetterPaint)
603603
}
604604

0 commit comments

Comments
 (0)