Adapt the parameter prohibitdRemoveByRouter to uiContent

Signed-off-by: liweifeng <liweifeng2@huawei.com>
Change-Id: Ia9b649d7f5dbb9698f54d0bc5cfe5d603c40d64d
This commit is contained in:
liweifeng 2024-08-02 10:54:47 +08:00
parent dfa6b9cd3e
commit faf2607815

View File

@ -979,6 +979,7 @@ ErrCode AbilityContextImpl::CreateModalUIExtensionWithApp(const AAFwk::Want &wan
disposedCallback->OnDestroy();
};
Ace::ModalUIExtensionConfig config;
config.prohibitedRemoveByRouter = true;
int32_t sessionId = uiContent->CreateModalUIExtension(want, callback, config);
if (sessionId == 0) {
TAG_LOGE(AAFwkTag::CONTEXT, "CreateModalUIExtension is failed");