consider implicitly enabled subtypes when switching with language switch button

fixes GH-1608
This commit is contained in:
Helium314 2025-05-27 18:14:05 +02:00
parent 7da068145f
commit b44dd29b0c

View file

@ -1461,7 +1461,7 @@ public class LatinIME extends InputMethodService implements
// switch IME if wanted and possible
if (switchIme && !switchSubtype && switchInputMethod())
return;
final boolean hasMoreThanOneSubtype = mRichImm.getMyEnabledInputMethodSubtypeList(false).size() > 1;
final boolean hasMoreThanOneSubtype = mRichImm.getMyEnabledInputMethodSubtypeList(true).size() > 1;
// switch subtype if wanted, do nothing if no other subtype is available
if (switchSubtype && !switchIme) {
if (hasMoreThanOneSubtype)