替换词汇为OH词汇

Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei 2022-02-15 11:07:44 +08:00
parent 0e37f5847d
commit bb670cd5b4

View File

@ -198,13 +198,13 @@ namespace MiscServices {
}
bool isStartSuccess = false;
sptr<AAFwk::IAbilityManager> ams = GetAbilityManagerService();
if (ams != nullptr) {
sptr<AAFwk::IAbilityManager> abms = GetAbilityManagerService();
if (abms != nullptr) {
AAFwk::Want want;
want.SetAction("action.system.inputmethod");
std::string::size_type pos = imeId.find("/");
want.SetElementName(imeId.substr(0, pos), imeId.substr(pos + 1));
int32_t result = ams->StartAbility(want);
int32_t result = abms->StartAbility(want);
if (result != 0) {
IMSA_HILOGE("PerUserSession::StartInputService fail. result = %{public}d", result);
isStartSuccess = false;