diff options
| author | Jules Aguillon | 2023-08-10 12:57:31 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-08-16 12:21:23 +0200 |
| commit | 500f4e41d3a72f5865aa489c89ad11b947fa54b7 (patch) | |
| tree | 677781ff5e82c320456f21e91b8ffa41819fd439 /srcs/juloo.keyboard2/Keyboard2.java | |
| parent | 8611dbcfa0ef6d551bf3acb65e5a1990a3ced75b (diff) | |
| download | unexpected-keyboard-500f4e41d3a72f5865aa489c89ad11b947fa54b7.tar.gz unexpected-keyboard-500f4e41d3a72f5865aa489c89ad11b947fa54b7.zip | |
Allow multiple custom layouts
This merges the "Layouts" option with the "Custom layout" option.
A custom layout becomes an item in the "Layouts" list among the other
layouts. It's possible to add several custom layouts.
Selecting the "Custom layout" item in the list opens a second dialog for
entering the layout description.
Layouts are serialized as JSON object and are decoded solely in the
LayoutsPreference class.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index 5f7442b..92507ed 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -155,7 +155,7 @@ public class Keyboard2 extends InputMethodService { String s = subtype.getExtraValueOf("default_layout"); if (s != null) - default_layout = _config.layout_of_string(getResources(), s); + default_layout = LayoutsPreference.layout_of_string(getResources(), s); refreshAccentsOption(imm, subtype); } } |
