mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2025-03-09 02:01:25 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
a396456c60
commit
e2a3d55267
@ -483,7 +483,12 @@ using namespace MessageID;
|
||||
{
|
||||
IMSA_HILOGI("run in SetInputMethodAgent");
|
||||
std::lock_guard<std::mutex> lock(mAgentLock_);
|
||||
mAgent = std::make_shared<InputMethodAgentProxy>(object);
|
||||
std::shared_ptr<InputMethodAgentProxy> agent = std::make_shared<InputMethodAgentProxy>(object);
|
||||
if (agent == nullptr) {
|
||||
IMSA_HILOGI("InputMethodController::SetInputMethodAgent agent is nullptr");
|
||||
return;
|
||||
}
|
||||
mAgent = agent;
|
||||
}
|
||||
|
||||
std::shared_ptr<InputMethodAgentProxy> InputMethodController::GetInputMethodAgent()
|
||||
|
Loading…
x
Reference in New Issue
Block a user