mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-06-27 13:12:02 +02:00
Fix a crash on API < 12
'extra_keys_subtype' can be none on API level < 12 when the "accents" option is tweaked.
This commit is contained in:
parent
c182f3d829
commit
c61b31168c
@ -177,7 +177,8 @@ final class Config
|
|||||||
// Extra keys are removed from the set as they are encountered during the
|
// Extra keys are removed from the set as they are encountered during the
|
||||||
// first iteration then automatically added.
|
// first iteration then automatically added.
|
||||||
final Set<KeyValue> extra_keys = new HashSet<KeyValue>();
|
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);
|
extra_keys.addAll(extra_keys_param);
|
||||||
if (kw.num_pad && show_numpad)
|
if (kw.num_pad && show_numpad)
|
||||||
kw = kw.addNumPad();
|
kw = kw.addNumPad();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user