mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
commit
b306952d39
@ -79,6 +79,7 @@ UINode::~UINode()
|
||||
|
||||
void UINode::AttachContext(PipelineContext* context, bool recursive)
|
||||
{
|
||||
CHECK_NULL_VOID(context);
|
||||
context_ = context;
|
||||
instanceId_ = context->GetInstanceId();
|
||||
if (updateJSInstanceCallback_) {
|
||||
|
@ -282,6 +282,7 @@ void PreFixEmptyBundleName(napi_env env, napi_value value)
|
||||
NapiStringToString(env, bundleNameNApi, bundleName);
|
||||
if (bundleName.empty()) {
|
||||
auto container = Container::CurrentSafely();
|
||||
CHECK_NULL_VOID(container);
|
||||
bundleName = container->GetBundleName();
|
||||
bundleNameNApi = CreateNapiString(env, bundleName);
|
||||
napi_set_named_property(env, value, BUNDLE_NAME, bundleNameNApi);
|
||||
|
Loading…
Reference in New Issue
Block a user