mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-25 11:22:20 +00:00
fix unwanted popups on language extra keys
regression from recent parser updates
This commit is contained in:
parent
b868b583dd
commit
7473d5b32b
1 changed files with 5 additions and 3 deletions
|
@ -98,10 +98,12 @@ object RawKeyboardParser {
|
|||
return { params ->
|
||||
simpleKeyData.mapIndexedTo(mutableListOf()) { i, row ->
|
||||
val newRow = row.toMutableList()
|
||||
val extraKeys = params.mId.mSubtype.keyboardLayoutSetName.endsWith("+") && params.mId.isAlphabetKeyboard
|
||||
if (extraKeys)
|
||||
if (params.mId.isAlphabetKeyboard
|
||||
&& params.mId.mSubtype.keyboardLayoutSetName.endsWith("+")
|
||||
&& "$layoutName+" == params.mId.mSubtype.keyboardLayoutSetName
|
||||
) {
|
||||
params.mLocaleKeyboardInfos.getExtraKeys(i+1)?.let { newRow.addAll(it) }
|
||||
println("${newRow.size}: ${newRow.map { it.label }}")
|
||||
}
|
||||
newRow
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue