mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-12-18 04:10:21 +00:00
替换词汇为OH词汇
Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
parent
0e37f5847d
commit
bb670cd5b4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user