check some error

Signed-off-by: gaoxiang <gaoxiang75@huawei.com>
This commit is contained in:
gaoxiang
2022-07-05 11:48:04 +08:00
parent 385852d753
commit e56d183490
2 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -236,7 +236,7 @@ namespace MiscServices {
auto callback = [this, imeId]() { StartInputService(imeId); };
serviceHandler_->PostTask(callback, INIT_INTERVAL);
}
return isStartSuccess;
return isStartSuccess;
}
void InputMethodSystemAbility::StopInputService(std::string imeId)
@@ -930,7 +930,8 @@ namespace MiscServices {
IMSA_HILOGI("InputMethodSystemAbility::OnSwitchInputMethod DefaultIme : %{public}s, TargetIme : %{public}s",
defaultIme.c_str(), targetIme.c_str());
if (defaultIme != targetIme) {
IMSA_HILOGI("InputMethodSystemAbility::OnSwitchInputMethod DefaultIme is not target! Start Switching IME !");
IMSA_HILOGI("InputMethodSystemAbility::OnSwitchInputMethod DefaultIme is "
"not target! Start Switching IME !");
StopInputService(defaultIme);
if (!StartInputService(targetIme)) {
return ErrorCode::ERROR_IME_START_FAILED;
+4 -4
View File
@@ -30,10 +30,10 @@ namespace MiscServices {
}
}
Message::Message(int32_t msgId, MessageParcel *msgContent, MessageParcel *msgReply) : Message(msgId, msgContent)
{
msgReply_ = msgReply;
}
Message::Message(int32_t msgId, MessageParcel *msgContent, MessageParcel *msgReply) : Message(msgId, msgContent)
{
msgReply_ = msgReply;
}
/*! Constructor
\param msg a source message
*/