Signed-off-by: cy7717 <chenyu301@huawei.com>
This commit is contained in:
cy7717 2023-03-10 14:06:34 +08:00
parent e60fe0a051
commit 849a9ff6a9
2 changed files with 2 additions and 2 deletions

View File

@ -645,7 +645,7 @@ bool InputMethodController::DispatchKeyEvent(std::shared_ptr<MMI::KeyEvent> keyE
return false;
}
if (isStopInput) {
IMSA_HILOGD("InputMethodController::input stop");
IMSA_HILOGE("InputMethodController::input stop");
return false;
}
std::shared_ptr<IInputMethodAgent> agent = GetInputMethodAgent();

View File

@ -152,6 +152,7 @@ int32_t InputMethodSystemAbility::Init()
if (!isSuccess) {
return -1;
}
state_ = ServiceRunningState::STATE_RUNNING;
ImeCfgManager::GetInstance().Init();
std::vector<int32_t> userIds;
if (BlockRetry(RETRY_INTERVAL, BLOCK_RETRY_TIMES, [&userIds]() -> bool {
@ -161,7 +162,6 @@ int32_t InputMethodSystemAbility::Init()
userSession_->UpdateCurrentUserId(userId_);
}
StartInputService(GetStartedIme(userId_));
state_ = ServiceRunningState::STATE_RUNNING;
StartUserIdListener();
int32_t ret = InitKeyEventMonitor();
IMSA_HILOGI("init KeyEvent monitor %{public}s", ret == ErrorCode::NO_ERROR ? "success" : "failed");