abouttreesummaryrefslogcommitdiff
path: root/res
diff options
context:
space:
mode:
authorJules Aguillon2023-06-25 16:34:05 +0200
committerJules Aguillon2023-06-25 16:34:05 +0200
commit15c608b8cd663bf9267ade94d689164762c40ed9 (patch)
treeb5e15fcf4964bc44d80c410927f4ac628be88382 /res
parent8ba82d2555342f6cf5e14d19c1d7bcadf46ab604 (diff)
downloadunexpected-keyboard-15c608b8cd663bf9267ade94d689164762c40ed9.tar.gz
unexpected-keyboard-15c608b8cd663bf9267ade94d689164762c40ed9.zip
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.
Diffstat (limited to 'res')
-rw-r--r--res/values/layouts.xml40
1 files changed, 40 insertions, 0 deletions
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 @@
<item>QWERTZ (Slovak)</item>
<item>@string/pref_layout_e_custom</item>
</string-array>
+ <integer-array name="layout_ids">
+ <item>-1</item>
+ <item>@xml/latn_qwerty_us</item>
+ <item>@xml/latn_colemak</item>
+ <item>@xml/latn_dvorak</item>
+ <item>@xml/arab_alt</item>
+ <item>@xml/arab_pc</item>
+ <item>@xml/arab_pc_ckb</item>
+ <item>@xml/arab_pc_ir</item>
+ <item>@xml/beng_national</item>
+ <item>@xml/beng_provat</item>
+ <item>@xml/cyrl_jcuken_ru</item>
+ <item>@xml/cyrl_jcuken_uk</item>
+ <item>@xml/cyrl_yaverti</item>
+ <item>@xml/deva_alt</item>
+ <item>@xml/deva_inscript</item>
+ <item>@xml/grek_qwerty</item>
+ <item>@xml/hang_dubeolsik_kr</item>
+ <item>@xml/hebr_1_il</item>
+ <item>@xml/hebr_2_il</item>
+ <item>@xml/latn_azerty_fr</item>
+ <item>@xml/latn_bone</item>
+ <item>@xml/latn_neo2</item>
+ <item>@xml/latn_qwerty_br</item>
+ <item>@xml/latn_qwerty_es</item>
+ <item>@xml/latn_qwerty_hu</item>
+ <item>@xml/latn_qwerty_lv</item>
+ <item>@xml/latn_qwerty_no</item>
+ <item>@xml/latn_qwerty_pl</item>
+ <item>@xml/latn_qwerty_ro</item>
+ <item>@xml/latn_qwerty_se</item>
+ <item>@xml/latn_qwerty_tr</item>
+ <item>@xml/latn_qwerty_vi</item>
+ <item>@xml/latn_qwertz</item>
+ <item>@xml/latn_qwertz_cz</item>
+ <item>@xml/latn_qwertz_de</item>
+ <item>@xml/latn_qwertz_hu</item>
+ <item>@xml/latn_qwertz_sk</item>
+ <item>-1</item>
+ </integer-array>
</resources> \ No newline at end of file