mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-18 15:15:21 +00:00
fix recognition of our own inputMethod
This commit is contained in:
parent
9efe534c03
commit
48f6c21b57
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ private class InputMethodInfoCache(private val imm: InputMethodManager, private
|
||||||
val cache = if (allowsImplicitlySelectedSubtypes) cachedSubtypeListWithImplicitlySelected
|
val cache = if (allowsImplicitlySelectedSubtypes) cachedSubtypeListWithImplicitlySelected
|
||||||
else cachedSubtypeListOnlyExplicitlySelected
|
else cachedSubtypeListOnlyExplicitlySelected
|
||||||
cache[imi]?.let { return it }
|
cache[imi]?.let { return it }
|
||||||
val result = if (imi === inputMethodOfThisIme) {
|
val result = if (imi == inputMethodOfThisIme) {
|
||||||
// allowsImplicitlySelectedSubtypes means system should choose if nothing is enabled,
|
// 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
|
// use it to fall back to system locales or en_US to avoid returning an empty list
|
||||||
SubtypeSettings.getEnabledSubtypes(allowsImplicitlySelectedSubtypes)
|
SubtypeSettings.getEnabledSubtypes(allowsImplicitlySelectedSubtypes)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue