!1417 修改其他输入法切换密码编辑框拉起密码键盘会导致键盘闪烁

Merge pull request !1417 from mashaoyin/master
This commit is contained in:
openharmony_ci 2024-08-27 17:02:23 +00:00 committed by Gitee
commit 70cf852f0e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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.");