From c883d1daf4fb26566a37546778e9820d6063740f Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Tue, 8 Mar 2022 19:47:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3crash=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhouyongfei --- services/src/input_method_system_ability.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/src/input_method_system_ability.cpp b/services/src/input_method_system_ability.cpp index ed92d25..68338ce 100644 --- a/services/src/input_method_system_ability.cpp +++ b/services/src/input_method_system_ability.cpp @@ -137,6 +137,7 @@ namespace MiscServices { state_ = ServiceRunningState::STATE_RUNNING; std::string defaultIme = ParaHandle::GetDefaultIme(userId_); StartInputService(defaultIme); + StartUserIdListener(); return ErrorCode::NO_ERROR; } @@ -182,8 +183,6 @@ namespace MiscServices { userId_ = MAIN_USER_ID; setting->Initialize(); - - StartUserIdListener(); } void InputMethodSystemAbility::StartUserIdListener()