From 849a9ff6a90c2fb2a70611ce69111074a1a5f11a Mon Sep 17 00:00:00 2001 From: cy7717 Date: Fri, 10 Mar 2023 14:06:34 +0800 Subject: [PATCH] MOD Signed-off-by: cy7717 --- .../inputmethod_controller/src/input_method_controller.cpp | 2 +- services/src/input_method_system_ability.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/native/inputmethod_controller/src/input_method_controller.cpp b/frameworks/native/inputmethod_controller/src/input_method_controller.cpp index f023b229e..67bc4914e 100644 --- a/frameworks/native/inputmethod_controller/src/input_method_controller.cpp +++ b/frameworks/native/inputmethod_controller/src/input_method_controller.cpp @@ -645,7 +645,7 @@ bool InputMethodController::DispatchKeyEvent(std::shared_ptr keyE return false; } if (isStopInput) { - IMSA_HILOGD("InputMethodController::input stop"); + IMSA_HILOGE("InputMethodController::input stop"); return false; } std::shared_ptr agent = GetInputMethodAgent(); diff --git a/services/src/input_method_system_ability.cpp b/services/src/input_method_system_ability.cpp index 4a1686c29..e89db2d8f 100644 --- a/services/src/input_method_system_ability.cpp +++ b/services/src/input_method_system_ability.cpp @@ -152,6 +152,7 @@ int32_t InputMethodSystemAbility::Init() if (!isSuccess) { return -1; } + state_ = ServiceRunningState::STATE_RUNNING; ImeCfgManager::GetInstance().Init(); std::vector 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");