mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-18 17:24:37 -04:00
Signed-off-by: lovechinamo <wangdongqi2@huawei.com>
Changes to be committed: modified: services/src/input_method_system_ability.cpp
This commit is contained in:
@@ -777,16 +777,7 @@ namespace MiscServices {
|
||||
}
|
||||
if (securityImeFlag) {
|
||||
InputMethodProperty *securityIme = setting->GetSecurityInputMethod();
|
||||
if (securityIme == nullptr) {
|
||||
IMSA_HILOGI("InputMethodSystemAbility::OnPackageAdded securityIme is nullptr");
|
||||
return ErrorCode::ERROR_NULL_POINTER;
|
||||
}
|
||||
InputMethodProperty *defaultIme = setting->GetCurrentInputMethod();
|
||||
if (defaultIme == nullptr) {
|
||||
IMSA_HILOGI("InputMethodSystemAbility::OnPackageAdded defaultIme is nullptr");
|
||||
return ErrorCode::ERROR_NULL_POINTER;
|
||||
}
|
||||
GetUserSession(userId)->ResetIme(defaultIme, securityIme);
|
||||
PerUserSession *session = GetUserSession(userId);
|
||||
if (session == nullptr) {
|
||||
IMSA_HILOGI("InputMethodSystemAbility::OnPackageAdded session is nullptr");
|
||||
|
||||
Reference in New Issue
Block a user