修复if语句逻辑bug

Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei
2022-02-15 19:07:07 +08:00
parent 955178b278
commit 32f5885089
+3 -2
View File
@@ -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) {