abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorJules Aguillon2022-03-05 20:21:37 +0100
committerJules Aguillon2022-03-05 20:21:37 +0100
commite303008e666c129caf886ea27ab840e2cc2322c5 (patch)
tree2e1bf1e8f936eebc3075d3cc5ded7d579e3eff31
parent5404e7432d9240b3c88dce3a8cf240362016293c (diff)
downloadunexpected-keyboard-e303008e666c129caf886ea27ab840e2cc2322c5.tar.gz
unexpected-keyboard-e303008e666c129caf886ea27ab840e2cc2322c5.zip
Fix action key not updating when switching field
The keyboard was updated before the action key is.
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index 44b36a1..2db63e6 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -176,7 +176,6 @@ public class Keyboard2 extends InputMethodService
_keyboardView = (Keyboard2View)inflate_view(R.layout.keyboard);
_emojiPane = null;
}
- _keyboardView.setKeyboard(getLayout(_currentTextLayout));
}
@Override
@@ -186,6 +185,8 @@ public class Keyboard2 extends InputMethodService
refreshEditorInfo(info);
if ((info.inputType & InputType.TYPE_CLASS_NUMBER) != 0)
_keyboardView.setKeyboard(getLayout(R.xml.numeric));
+ else
+ _keyboardView.setKeyboard(getLayout(_currentTextLayout));
setInputView(_keyboardView);
}