forked from extern/Unexpected-Keyboard
Fix mismatch layout name
The Korean layout id was not consistent and this caused a crash.
This commit is contained in:
parent
120c0a9d23
commit
5562ee1391
@ -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>
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user