From 32f5885089f24224ed9f8bff1db1064e3825a04c Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Tue, 15 Feb 2022 19:07:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dif=E8=AF=AD=E5=8F=A5=E9=80=BB?= =?UTF-8?q?=E8=BE=91bug?= 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/src/input_method_system_ability.cpp b/services/src/input_method_system_ability.cpp index 9a26555..48db242 100644 --- a/services/src/input_method_system_ability.cpp +++ b/services/src/input_method_system_ability.cpp @@ -206,10 +206,11 @@ namespace MiscServices { want.SetElementName(imeId.substr(0, pos), imeId.substr(pos + 1)); int32_t result = abms->StartAbility(want); if (result != 0) { - IMSA_HILOGE("PerUserSession::StartInputService fail. result = %{public}d", result); + IMSA_HILOGE("InputMethodSystemAbility::StartInputService fail. result = %{public}d", result); isStartSuccess = false; + } else { + isStartSuccess = true; } - isStartSuccess = true; } if (!isStartSuccess) {