From 15c608b8cd663bf9267ade94d689164762c40ed9 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 25 Jun 2023 16:34:05 +0200 Subject: Use generated arrays in Config.layout_of_string This function is no longer an hardcoded list of layout ids. It's replaced by a linear scan of the previously generated array and a new corresponding array of resource ids. --- res/values/layouts.xml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'res/values/layouts.xml') diff --git a/res/values/layouts.xml b/res/values/layouts.xml index 6042437..139d42e 100644 --- a/res/values/layouts.xml +++ b/res/values/layouts.xml @@ -81,4 +81,44 @@ QWERTZ (Slovak) @string/pref_layout_e_custom + + -1 + @xml/latn_qwerty_us + @xml/latn_colemak + @xml/latn_dvorak + @xml/arab_alt + @xml/arab_pc + @xml/arab_pc_ckb + @xml/arab_pc_ir + @xml/beng_national + @xml/beng_provat + @xml/cyrl_jcuken_ru + @xml/cyrl_jcuken_uk + @xml/cyrl_yaverti + @xml/deva_alt + @xml/deva_inscript + @xml/grek_qwerty + @xml/hang_dubeolsik_kr + @xml/hebr_1_il + @xml/hebr_2_il + @xml/latn_azerty_fr + @xml/latn_bone + @xml/latn_neo2 + @xml/latn_qwerty_br + @xml/latn_qwerty_es + @xml/latn_qwerty_hu + @xml/latn_qwerty_lv + @xml/latn_qwerty_no + @xml/latn_qwerty_pl + @xml/latn_qwerty_ro + @xml/latn_qwerty_se + @xml/latn_qwerty_tr + @xml/latn_qwerty_vi + @xml/latn_qwertz + @xml/latn_qwertz_cz + @xml/latn_qwertz_de + @xml/latn_qwertz_hu + @xml/latn_qwertz_sk + -1 + \ No newline at end of file -- cgit v1.2.3