mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 22:59:45 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
d741bc5524
commit
d99ec4a7a9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user