Skip to content

Commit

Permalink
fix: liquid keyboard symbollist not working
Browse files Browse the repository at this point in the history
  • Loading branch information
if-can committed Jan 12, 2025
1 parent d0e54c9 commit 6f666de
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class LiquidKeyboard(
setOnDebouncedItemClick { _, _, position ->
val item = items[position]
when (currentBoardType) {
SymbolBoardType.SYMBOL -> triggerSymbolInput(item.first)
SymbolBoardType.SYMBOL -> triggerSymbolInput(item.second)
SymbolBoardType.TABS -> {
val realPosition = TabManager.tabTags.indexOfFirst { it.text == item.first }
select(realPosition)
Expand Down Expand Up @@ -160,7 +160,8 @@ class LiquidKeyboard(
val items =
data.map {
val text = if (tag.type == SymbolBoardType.SYMBOL) it.label else it.text
text to ""
val value = if (tag.type == SymbolBoardType.SYMBOL) it.text else ""
text to value
}
initVarLengthKeys(items)
}
Expand Down

0 comments on commit 6f666de

Please sign in to comment.