mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-19 20:13:32 -04:00
@@ -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;
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user