!71 修复if语句逻辑bug

Merge pull request !71 from demon/master
This commit is contained in:
openharmony_ci 2022-02-15 12:47:47 +00:00 committed by Gitee
commit dec08f5e7b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -214,10 +214,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) {