change what can be stored in KeyboardLayoutSet subtype extra value

and some more preparations for adjustments related to language/layout settings upgrade
This commit is contained in:
Helium314 2025-02-13 17:29:51 +01:00
parent f2f7426ee5
commit 201b430362
25 changed files with 313 additions and 371 deletions

View file

@ -211,7 +211,7 @@ public final class AndroidSpellCheckerService extends SpellCheckerService
final KeyboardLayoutSet.Builder builder = new KeyboardLayoutSet.Builder(this, editorInfo);
return builder
.setKeyboardGeometry(SPELLCHECKER_DUMMY_KEYBOARD_WIDTH, SPELLCHECKER_DUMMY_KEYBOARD_HEIGHT)
.setSubtype(RichInputMethodSubtype.getRichInputMethodSubtype(subtype))
.setSubtype(RichInputMethodSubtype.Companion.get(subtype))
.setIsSpellChecker(true)
.disableTouchPositionCorrectionData()
.build();