enable hinglish subtype

This commit is contained in:
Helium314 2023-08-27 19:24:10 +02:00
parent f137a32a28
commit f7bbefff98
2 changed files with 4 additions and 5 deletions

View file

@ -86,8 +86,8 @@ class LanguageSettingsFragment : SubScreenFragment() {
} }
// special treatment for the known languages with _ZZ types // special treatment for the known languages with _ZZ types
// todo: later: make it a bit less weird... and probably faster // todo: later: make it a bit less weird... and probably faster
// consider that more _ZZ languages might be added (e.g. hinglish) // consider that more _ZZ languages might be added
if (!added && locale.language == "sr") { if (!added && (locale.language == "sr" || locale.language == "hi")) {
val languageString = locale.language val languageString = locale.language
val iter = allSubtypes.iterator() val iter = allSubtypes.iterator()
while (iter.hasNext()) { while (iter.hasNext()) {

View file

@ -416,8 +416,8 @@
android:isAsciiCapable="false" android:isAsciiCapable="false"
/> />
<!-- TODO: This Hinglish keyboard is a preliminary layout. <!-- TODO: This Hinglish keyboard is a preliminary layout.
This isn't based on the final specification. --> This isn't based on the final specification.
<!-- Disabled because there is no LM yet, and this layout does not offer anything different. Was disabled because there is no LM yet, and this layout does not offer anything different. -->
<subtype android:icon="@drawable/ic_ime_switcher_dark" <subtype android:icon="@drawable/ic_ime_switcher_dark"
android:label="@string/subtype_hi_ZZ" android:label="@string/subtype_hi_ZZ"
android:subtypeId="0x352eb37c" android:subtypeId="0x352eb37c"
@ -426,7 +426,6 @@
android:imeSubtypeExtraValue="AsciiCapable,KeyboardLayoutSet=qwerty,EmojiCapable" android:imeSubtypeExtraValue="AsciiCapable,KeyboardLayoutSet=qwerty,EmojiCapable"
android:isAsciiCapable="true" android:isAsciiCapable="true"
/> />
-->
<subtype android:icon="@drawable/ic_ime_switcher_dark" <subtype android:icon="@drawable/ic_ime_switcher_dark"
android:label="@string/subtype_generic" android:label="@string/subtype_generic"
android:subtypeId="0x35b7526a" android:subtypeId="0x35b7526a"