abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/KeyboardData.java
diff options
context:
space:
mode:
authorJules Aguillon2025-03-27 23:25:32 +0100
committerGitHub2025-03-27 23:25:32 +0100
commit6541054cce964b7243d8779b54b168cda6741aff (patch)
tree5a065d34c23316ca25f1ad6605c688619af43b85 /srcs/juloo.keyboard2/KeyboardData.java
parent3971f6243cb5b5ca7f3120d5be8140f7646c9d7e (diff)
downloadunexpected-keyboard-6541054cce964b7243d8779b54b168cda6741aff.tar.gz
unexpected-keyboard-6541054cce964b7243d8779b54b168cda6741aff.zip
Remove symbols from the number row by default (#964)
The number row option is changed into a ListPreference and controls whether the number row contains symbols or not. Co-authored-by: Joey Schaff <j@jaoh.xyz>
Diffstat (limited to 'srcs/juloo.keyboard2/KeyboardData.java')
-rw-r--r--srcs/juloo.keyboard2/KeyboardData.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/srcs/juloo.keyboard2/KeyboardData.java b/srcs/juloo.keyboard2/KeyboardData.java
index fd111bf..e4a7506 100644
--- a/srcs/juloo.keyboard2/KeyboardData.java
+++ b/srcs/juloo.keyboard2/KeyboardData.java
@@ -177,14 +177,9 @@ public final class KeyboardData
private static Map<Integer, KeyboardData> _layoutCache = new HashMap<Integer, KeyboardData>();
- public static Row load_bottom_row(Resources res) throws Exception
+ public static Row load_row(Resources res, int res_id) throws Exception
{
- return parse_row(res.getXml(R.xml.bottom_row));
- }
-
- public static Row load_number_row(Resources res) throws Exception
- {
- return parse_row(res.getXml(R.xml.number_row));
+ return parse_row(res.getXml(res_id));
}
public static KeyboardData load_num_pad(Resources res) throws Exception