fix(android): removes "where context is null" reporting

Fixes: #10032
Cherry-pick-of: #13004
This commit is contained in:
Joshua Horton 2025-01-23 14:25:23 +07:00
parent ac90d3df42
commit ff60fca8fd

View file

@ -520,10 +520,6 @@ public class ResourcesUpdateTool implements KeyboardEventHandler.OnKeyboardDownl
@Override
public void onPackageInstalled(List<Map<String, String>> keyboardsInstalled) {
if (!isContextAvailable()) {
KMLog.LogError(TAG, "onPackageInstalled where context is null.");
}
if (! openUpdates.isEmpty() && keyboardsInstalled != null) {
for (Map<String, String> k : keyboardsInstalled) {
String _langid = k.get(KMManager.KMKey_LanguageID);
@ -537,10 +533,6 @@ public class ResourcesUpdateTool implements KeyboardEventHandler.OnKeyboardDownl
@Override
public void onLexicalModelInstalled(List<Map<String, String>> lexicalModelsInstalled) {
if (!isContextAvailable()) {
KMLog.LogError(TAG, "onLexicalModelInstalled where context is null.");
}
if (! openUpdates.isEmpty()) {
for(Map<String,String> _lm:lexicalModelsInstalled) {
String _langid = _lm.get(KMManager.KMKey_LanguageID);