From 5562ee139188479fdb3e4f1553a7680216dd7c61 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Wed, 6 Apr 2022 09:43:46 +0200 Subject: Fix mismatch layout name The Korean layout id was not consistent and this caused a crash. --- srcs/juloo.keyboard2/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srcs/juloo.keyboard2/Config.java') 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 } } -- cgit v1.2.3