Skip to content

Commit c5f4cae

Browse files
committed
fix: avoid clearing popup when numbers row is enabled
1 parent 10355d4 commit c5f4cae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/kotlin/org/fossify/keyboard/helpers/MyKeyboard.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,9 @@ class MyKeyboard {
385385
if (context.config.showNumbersRow) {
386386
// Removes numbers (i.e 0-9) from the popupCharacters if numbers row is enabled
387387
key.apply {
388+
val hadPopupCharacters = popupCharacters != null
388389
popupCharacters = popupCharacters?.replace(Regex("\\d+"), "")
389-
if (popupCharacters.isNullOrEmpty()) {
390+
if (hadPopupCharacters && popupCharacters.isNullOrEmpty()) {
390391
popupResId = 0
391392
}
392393
}

0 commit comments

Comments
 (0)