diff options
| author | Jules Aguillon | 2022-04-06 09:43:46 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-04-06 09:50:33 +0200 |
| commit | 5562ee139188479fdb3e4f1553a7680216dd7c61 (patch) | |
| tree | ff77f090f964e49db0a12eaad19e30536ca52d7b | |
| parent | 120c0a9d2351a94a3d900d5a2649588cf24c8748 (diff) | |
| download | unexpected-keyboard-5562ee139188479fdb3e4f1553a7680216dd7c61.tar.gz unexpected-keyboard-5562ee139188479fdb3e4f1553a7680216dd7c61.zip | |
Fix mismatch layout name
The Korean layout id was not consistent and this caused a crash.
| -rw-r--r-- | res/values/arrays.xml | 2 | ||||
| -rw-r--r-- | srcs/juloo.keyboard2/Config.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 7412d55..185f1c8 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -6,7 +6,7 @@ <item>qwerty</item> <item>qwerty_pt</item> <item>qwerty_es</item> - <item>qwerty_kr</item> + <item>qwerty_ko</item> <item>qwerty_lv</item> <item>qwerty_sv_se</item> <item>ru_jcuken</item> diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 5027e9a..47fb62a 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -223,7 +223,7 @@ final class Config case "qwerty_sv_se": return R.xml.qwerty_sv_se; case "qwertz": return R.xml.qwertz; case "ru_jcuken": return R.xml.local_ru_jcuken; - default: throw new IllegalArgumentException("layoutId_of_string: Unknown layout: " + name); + default: return R.xml.qwerty; // The config might store an invalid layout, don't crash } } |
