fix SwitchInputMethod error

Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
zhaolinglan
2022-07-19 11:55:12 +08:00
parent fc938defff
commit 9ff3ca2202
12 changed files with 64 additions and 63 deletions
@@ -440,7 +440,7 @@ namespace MiscServices {
int32_t InputMethodSystemAbilityProxy::SwitchInputMethod(InputMethodProperty* target)
{
IMSA_HILOGI("InputMethodSystemAbilityProxy::switchInputMethod");
IMSA_HILOGI("InputMethodSystemAbilityProxy::SwitchInputMethod");
MessageParcel data, reply;
MessageOption option;
@@ -454,8 +454,9 @@ namespace MiscServices {
return false;
}
delete target;
auto ret = Remote()->SendRequest(SWITCH_INPUT_METHOD, data, reply, option);
ret = reply.ReadInt32();
Remote()->SendRequest(SWITCH_INPUT_METHOD, data, reply, option);
int32_t ret = reply.ReadInt32();
IMSA_HILOGE("InputMethodSystemAbilityProxy::switchInputMethod ret = %{public}d", ret);
return ret;
}
} // namespace MiscServices