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

@ -857,7 +857,7 @@ public class LatinIME extends InputMethodService implements
public void onCurrentInputMethodSubtypeChanged(final InputMethodSubtype subtype) {
// Note that the calling sequence of onCreate() and onCurrentInputMethodSubtypeChanged()
// is not guaranteed. It may even be called at the same time on a different thread.
if (subtype.hashCode() == 0xf000000f) {
if (subtype.hashCode() == 0x7000000f) {
// For some reason sometimes the system wants to set the dummy subtype, which messes with the currently enabled subtype.
// Now that the dummy subtype has a fixed id, we can easily avoid enabling it.
return;