!331 修复通过innerkit拉打印关闭界面后闪退问题

Merge pull request !331 from 包泽伟/master
This commit is contained in:
openharmony_ci 2024-08-30 13:21:45 +00:00 committed by Gitee
commit 451be6d8dc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -597,12 +597,12 @@ int32_t PrintManagerClient::Print(const std::string &printJobName, const sptr<IP
auto printUiContent = static_cast<OHOS::Ace::UIContent *>(uiContent);
auto callback = std::make_shared<PrintInnerkitModalUICallback>(printUiContent);
OHOS::Ace::ModalUIExtensionCallbacks extensionCallbacks = {
[&callback](int32_t releaseCode) { callback->OnRelease(releaseCode); },
[&callback](int32_t resultCode, const OHOS::AAFwk::Want& result) {
[callback](int32_t releaseCode) { callback->OnRelease(releaseCode); },
[callback](int32_t resultCode, const OHOS::AAFwk::Want& result) {
callback->OnResultForModal(resultCode, result);
},
[&callback](const OHOS::AAFwk::WantParams& request) { callback->OnReceive(request); },
[&callback](int32_t code, const std::string& name, const std::string& message) {
[callback](const OHOS::AAFwk::WantParams& request) { callback->OnReceive(request); },
[callback](int32_t code, const std::string& name, const std::string& message) {
callback->OnError(code, name, message);
}
};