mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 06:40:06 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
9336a66635
commit
dd6e3ff2ed
@ -859,7 +859,7 @@ int32_t InputMethodSystemAbility::SwitchInputType(int32_t userId, const SwitchIn
|
||||
IMSA_HILOGE("targetIme is nullptr!");
|
||||
return ErrorCode::ERROR_NULL_POINTER;
|
||||
}
|
||||
if (!session->StartIme(std::make_shared<ImeNativeCfg>(targetIme))) {
|
||||
if (!session->StartIme(targetIme)) {
|
||||
IMSA_HILOGE("start input method failed!");
|
||||
return ErrorCode::ERROR_IME_START_FAILED;
|
||||
}
|
||||
|
@ -1729,7 +1729,7 @@ bool PerUserSession::CheckPwdInputPatternConv(InputClientInfo &newClientInfo)
|
||||
std::shared_ptr<ImeNativeCfg> PerUserSession::GetImeNativeCfg(int32_t userId, const std::string &bundleName,
|
||||
const std::string &subName)
|
||||
{
|
||||
auto targetImeProperty = GetImeProperty(userId, bundleName);
|
||||
auto targetImeProperty = ImeInfoInquirer::GetInstance().GetImeProperty(userId, bundleName);
|
||||
if (targetImeProperty == nullptr) {
|
||||
IMSA_HILOGE("GetImeProperty [%{public}d, %{public}s] failed!", userId, bundleName.c_str());
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user