fix recognition of our own inputMethod

This commit is contained in:
Helium314 2025-06-07 21:01:48 +02:00
parent 9efe534c03
commit 48f6c21b57

View file

@ -283,7 +283,7 @@ private class InputMethodInfoCache(private val imm: InputMethodManager, private
val cache = if (allowsImplicitlySelectedSubtypes) cachedSubtypeListWithImplicitlySelected
else cachedSubtypeListOnlyExplicitlySelected
cache[imi]?.let { return it }
val result = if (imi === inputMethodOfThisIme) {
val result = if (imi == inputMethodOfThisIme) {
// allowsImplicitlySelectedSubtypes means system should choose if nothing is enabled,
// use it to fall back to system locales or en_US to avoid returning an empty list
SubtypeSettings.getEnabledSubtypes(allowsImplicitlySelectedSubtypes)