Fix. If setting "Show numbers on a separate row" is turned ON, small top special characters are not displayed for numeric keyboard

This commit is contained in:
Dmitriy Chernysh 2023-10-14 17:52:44 +03:00
parent 57b34876f0
commit e74c76b59f
1 changed files with 1 additions and 1 deletions

View File

@ -598,7 +598,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
label, (key.width / 2).toFloat(), key.height / 2 + (paint.textSize - paint.descent()) / 2, paint
)
if (key.topSmallNumber.isNotEmpty() && !context.config.showNumbersRow) {
if (key.topSmallNumber.isNotEmpty() && !(context.config.showNumbersRow && Regex("\\d").matches(key.topSmallNumber))) {
canvas.drawText(key.topSmallNumber, key.width - mTopSmallNumberMarginWidth, mTopSmallNumberMarginHeight, smallLetterPaint)
}