diff options
| author | Jules Aguillon | 2022-09-19 11:41:18 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-09-19 11:41:18 +0200 |
| commit | 25a6e71ee815a196d76358cf132c45eb38a10b35 (patch) | |
| tree | 99a76bca782a96e8abe0a9311e6ad4f924e2a7fe /srcs/juloo.keyboard2/Keyboard2.java | |
| parent | 617f0878bca876bc7163b82586e0ea9a4a623c84 (diff) | |
| download | unexpected-keyboard-25a6e71ee815a196d76358cf132c45eb38a10b35.tar.gz unexpected-keyboard-25a6e71ee815a196d76358cf132c45eb38a10b35.zip | |
Add the Extra Keys option
Allows to add more keys to the keyboard from a predefined list.
The implementation doesn't use MultiSelectListPreference because it
doesn't seem possible to change the item layout to properly show the
rendered symbols.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index b2197a1..4140a45 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -117,7 +117,7 @@ public class Keyboard2 extends InputMethodService case 4: break; default: throw new IllegalArgumentException(); } - _config.extra_keys = extra_keys; + _config.extra_keys_subtype = extra_keys; if (enabled_subtypes.size() > 1) _config.shouldOfferSwitchingToNextInputMethod = true; } @@ -127,8 +127,8 @@ public class Keyboard2 extends InputMethodService // Fallback for the accents option: Only respect the "None" case switch (_config.accents) { - case 1: case 2: case 3: _config.extra_keys = null; break; - case 4: _config.extra_keys = new HashSet<KeyValue>(); break; + case 1: case 2: case 3: _config.extra_keys_subtype = null; break; + case 4: _config.extra_keys_subtype = new HashSet<KeyValue>(); break; } // Fallback for the layout option: Use qwerty in the "system settings" case _currentTextLayout = (_config.layout == -1) ? R.xml.qwerty : _config.layout; |
