diff options
| author | Jules Aguillon | 2022-12-14 15:09:46 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2022-12-14 15:09:46 +0100 |
| commit | c61b31168cf37b171e262f236975f1071dd92000 (patch) | |
| tree | fbace438f3ac20a4aef9015ad061ae921812eb46 /srcs/juloo.keyboard2 | |
| parent | c182f3d8295a2cad985cb1e2eb27d9114d169870 (diff) | |
| download | unexpected-keyboard-c61b31168cf37b171e262f236975f1071dd92000.tar.gz unexpected-keyboard-c61b31168cf37b171e262f236975f1071dd92000.zip | |
Fix a crash on API < 12
'extra_keys_subtype' can be none on API level < 12 when the "accents"
option is tweaked.
Diffstat (limited to 'srcs/juloo.keyboard2')
| -rw-r--r-- | srcs/juloo.keyboard2/Config.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index c289436..aa053b5 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -177,7 +177,8 @@ final class Config // Extra keys are removed from the set as they are encountered during the // first iteration then automatically added. final Set<KeyValue> extra_keys = new HashSet<KeyValue>(); - extra_keys.addAll(extra_keys_subtype); + if (extra_keys_subtype != null) + extra_keys.addAll(extra_keys_subtype); extra_keys.addAll(extra_keys_param); if (kw.num_pad && show_numpad) kw = kw.addNumPad(); |
