!1207 告警修改,回退错误修改

Merge pull request !1207 from guojin31/master
This commit is contained in:
openharmony_ci 2024-05-30 03:34:33 +00:00 committed by Gitee
commit 926ad040fe
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -317,7 +317,9 @@ std::shared_ptr<AppExecFwk::EventHandler> JsKeyboardPanelManager::GetEventHandle
return handler_;
}
std::lock_guard<std::mutex> lock(eventHandlerMutex_);
handler_ = AppExecFwk::EventHandler::Current();
if (handler_ == nullptr) {
handler_ = AppExecFwk::EventHandler::Current();
}
return handler_;
}