Merge pull request !87 from zjl0222/master
This commit is contained in:
openharmony_ci 2024-07-26 11:51:40 +00:00 committed by Gitee
commit 28dff46fb6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -439,7 +439,7 @@ void StartUIExtensionAbility(Want &want, std::shared_ptr<OHOS::AbilityRuntime::A
auto uiExtCallback = std::make_shared<UIExtensionCallback>(abilityContext);
ADS_HILOGI(OHOS::Cloud::ADS_MODULE_JS_NAPI, "set uiExtCallback");
OHOS::Ace::ModalUIExtensionCallbacks extensionCallbacks = {
std::bind(&UIExtensionCallback::OnRelease, uiExtCallback, std::placeholders::_1),
[uiExtCallback](int32_t releaseCode) { uiExtCallback->OnRelease(releaseCode); },
};
ADS_HILOGI(OHOS::Cloud::ADS_MODULE_JS_NAPI, "set extensionCallbacks");
Ace::ModalUIExtensionConfig config;
@ -936,4 +936,4 @@ void UIExtensionCallback::OnRelease(int32_t releaseCode)
}
} // namespace AdsNapi
} // namespace CloudNapi
} // namespace OHOS
} // namespace OHOS