diff --git a/services/src/form_mgr_adapter.cpp b/services/src/form_mgr_adapter.cpp index 2f5bc0495bdf690a43e3dfecc1aa3548edef6826..f0e05a78e3fc5631ec0737569265800ba4d6c745 100644 --- a/services/src/form_mgr_adapter.cpp +++ b/services/src/form_mgr_adapter.cpp @@ -4182,8 +4182,7 @@ ErrCode FormMgrAdapter::ProtectLockForms(const std::string &bundleName, int32_t for (auto iter = formInfos.begin(); iter != formInfos.end();) { HILOG_DEBUG("bundleName:%{public}s, lockForm:%{public}d, transparencyEnabled:%{public}d", iter->bundleName.c_str(), iter->lockForm, iter->transparencyEnabled); - if (iter->protectForm == protect || - FormExemptLockMgr::GetInstance().IsExemptLock(iter->formId)) { + if (FormExemptLockMgr::GetInstance().IsExemptLock(iter->formId)) { iter = formInfos.erase(iter); continue; }