Fix mismatch layout name

The Korean layout id was not consistent and this caused a crash.
This commit is contained in:
Jules Aguillon 2022-04-06 09:43:46 +02:00
parent 120c0a9d23
commit 5562ee1391
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<item>qwerty</item> <item>qwerty</item>
<item>qwerty_pt</item> <item>qwerty_pt</item>
<item>qwerty_es</item> <item>qwerty_es</item>
<item>qwerty_kr</item> <item>qwerty_ko</item>
<item>qwerty_lv</item> <item>qwerty_lv</item>
<item>qwerty_sv_se</item> <item>qwerty_sv_se</item>
<item>ru_jcuken</item> <item>ru_jcuken</item>

View File

@ -223,7 +223,7 @@ final class Config
case "qwerty_sv_se": return R.xml.qwerty_sv_se; case "qwerty_sv_se": return R.xml.qwerty_sv_se;
case "qwertz": return R.xml.qwertz; case "qwertz": return R.xml.qwertz;
case "ru_jcuken": return R.xml.local_ru_jcuken; 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
} }
} }