mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-18 17:24:37 -04:00
@@ -547,9 +547,7 @@ namespace MiscServices {
|
||||
IMSA_HILOGE("Aborted! %s\n", ErrorCode::ToString(ErrorCode::ERROR_BAD_PARAMETERS));
|
||||
return ErrorCode::ERROR_BAD_PARAMETERS;
|
||||
}
|
||||
|
||||
std::string defaultIme = ParaHandle::GetDefaultIme(userId_);
|
||||
StopInputService(defaultIme);
|
||||
int32_t userId = msg->msgContent_->ReadInt32();
|
||||
userId_ = userId;
|
||||
IMSA_HILOGI("InputMethodSystemAbility::OnUserStarted userId = %{public}u", userId);
|
||||
@@ -560,6 +558,8 @@ namespace MiscServices {
|
||||
return ErrorCode::ERROR_USER_ALREADY_STARTED;
|
||||
}
|
||||
|
||||
StopInputService(defaultIme);
|
||||
|
||||
setting = new PerUserSetting(userId);
|
||||
setting->Initialize();
|
||||
PerUserSession *session = new PerUserSession(userId);
|
||||
|
||||
Reference in New Issue
Block a user