abouttreesummaryrefslogcommitdiff
path: root/srcs
diff options
context:
space:
mode:
authorJules Aguillon2022-04-06 09:43:46 +0200
committerJules Aguillon2022-04-06 09:50:33 +0200
commit5562ee139188479fdb3e4f1553a7680216dd7c61 (patch)
treeff77f090f964e49db0a12eaad19e30536ca52d7b /srcs
parent120c0a9d2351a94a3d900d5a2649588cf24c8748 (diff)
downloadunexpected-keyboard-5562ee139188479fdb3e4f1553a7680216dd7c61.tar.gz
unexpected-keyboard-5562ee139188479fdb3e4f1553a7680216dd7c61.zip
Fix mismatch layout name
The Korean layout id was not consistent and this caused a crash.
Diffstat (limited to 'srcs')
-rw-r--r--srcs/juloo.keyboard2/Config.java2
1 files changed, 1 insertions, 1 deletions
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
}
}