forked from extern/Unexpected-Keyboard
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,6 +177,7 @@ 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>();
|
||||||
|
if (extra_keys_subtype != null)
|
||||||
extra_keys.addAll(extra_keys_subtype);
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user