diff --git a/frameworks/inputmethod_ability/src/input_method_agent_stub.cpp b/frameworks/inputmethod_ability/src/input_method_agent_stub.cpp index e14097c..d9bc285 100644 --- a/frameworks/inputmethod_ability/src/input_method_agent_stub.cpp +++ b/frameworks/inputmethod_ability/src/input_method_agent_stub.cpp @@ -91,7 +91,7 @@ namespace MiscServices { if (!msgHandler_) { return false; } - InputMethodAbility::SetCallingWindow(windowId); + InputMethodAbility::GetInstance()->SetCallingWindow(windowId); return; }