From 25a6e71ee815a196d76358cf132c45eb38a10b35 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Mon, 19 Sep 2022 11:41:18 +0200 Subject: 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. --- srcs/juloo.keyboard2/Keyboard2.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'srcs/juloo.keyboard2/Keyboard2.java') 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(); break; + case 1: case 2: case 3: _config.extra_keys_subtype = null; break; + case 4: _config.extra_keys_subtype = new HashSet(); break; } // Fallback for the layout option: Use qwerty in the "system settings" case _currentTextLayout = (_config.layout == -1) ? R.xml.qwerty : _config.layout; -- cgit v1.2.3