Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

Changes to be committed:
This commit is contained in:
ma-shaoyin 2023-07-12 14:10:26 +08:00
parent d741bc5524
commit d99ec4a7a9

View File

@ -313,7 +313,6 @@ int32_t PerUserSession::SendAgentToSingleClient(const sptr<IInputClient> &client
auto agent = GetAgent();
if (agent == nullptr) {
IMSA_HILOGI("agent is nullptr");
InputMethodSysEvent::CreateComponentFailed(userId_, ErrorCode::ERROR_NULL_POINTER);
return ErrorCode::ERROR_NULL_POINTER;
}
return client->OnInputReady(agent);
@ -635,6 +634,7 @@ bool PerUserSession::StartInputService(const std::string &imeName, bool isRetry)
ErrorCode::ERROR_IME_START_FAILED, imeName, "StartInputService, failed to start ability.");
} else if (isImeStarted_.GetValue()) {
IMSA_HILOGI("ime started successfully");
InputMethodSysEvent::EventRecorder(IMEBehaviour::START_IME);
return true;
}
if (isRetry) {