diff --git a/services/src/input_method_system_ability.cpp b/services/src/input_method_system_ability.cpp index 5fc67a30..d9a3f4c3 100644 --- a/services/src/input_method_system_ability.cpp +++ b/services/src/input_method_system_ability.cpp @@ -310,6 +310,7 @@ int32_t InputMethodSystemAbility::CheckInputTypeOption(int32_t userId, InputClie if (inputClientInfo.config.inputAttribute.GetSecurityFlag()) { if (!InputTypeManager::GetInstance().IsStarted()) { IMSA_HILOGD("SecurityFlag, input type is not started, start."); + inputClientInfo.needHide = false; return StartInputType(userId, InputType::SECURITY_INPUT); } if (!inputClientInfo.isNotifyInputStart) { @@ -318,6 +319,7 @@ int32_t InputMethodSystemAbility::CheckInputTypeOption(int32_t userId, InputClie } if (!InputTypeManager::GetInstance().IsSecurityImeStarted()) { IMSA_HILOGD("SecurityFlag, new textFiled, input type is started, but it is not security, switch."); + inputClientInfo.needHide = false; return StartInputType(userId, InputType::SECURITY_INPUT); } IMSA_HILOGD("SecurityFlag, other condition, not deal.");