mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 23:10:54 +00:00
!10176 UiExtFirstFlag使用调整
Merge pull request !10176 from thks/fixUiExtFlag
This commit is contained in:
commit
9afc175686
@ -2418,7 +2418,7 @@ public:
|
||||
virtual void NotifyExtensionEventAsync(uint32_t notifyEvent) {}
|
||||
|
||||
/**
|
||||
* @brief Get isUIExtFirstSubWindow flag
|
||||
* @brief Get whether this window is the first level sub window of UIExtension.
|
||||
*
|
||||
* @return true - is the first sub window of UIExtension, false - is not the first sub window of UIExtension
|
||||
*/
|
||||
|
@ -231,7 +231,7 @@ public:
|
||||
void SetOnlySupportSceneBoard(bool onlySupportSceneBoard);
|
||||
|
||||
/**
|
||||
* @brief Set whether this window is the first sub window of UIExtension.
|
||||
* @brief Set whether this window is the first level sub window of UIExtension.
|
||||
*
|
||||
* @param isUIExtFirstSubWindow whether is the first sub window of UIExtension.
|
||||
*/
|
||||
@ -427,7 +427,7 @@ public:
|
||||
bool GetOnlySupportSceneBoard() const;
|
||||
|
||||
/**
|
||||
* @brief Get isUIExtFirstSubWindow flag
|
||||
* @brief Get whether this window is the first level sub window of UIExtension.
|
||||
*
|
||||
* @return true - is the first sub window of UIExtension, false - is not the first sub window of UIExtension
|
||||
*/
|
||||
|
@ -1343,7 +1343,7 @@ WMError WindowSceneSessionImpl::DestroyInner(bool needNotifyServer)
|
||||
if (WindowHelper::IsSystemWindow(GetType())) {
|
||||
// main window no need to notify host, since host knows hide first
|
||||
ret = SyncDestroyAndDisconnectSpecificSession(property_->GetPersistentId());
|
||||
} else if (WindowHelper::IsSubWindow(GetType()) && property_->GetIsUIExtFirstSubWindow()) {
|
||||
} else if (WindowHelper::IsSubWindow(GetType()) && !property_->GetIsUIExtFirstSubWindow()) {
|
||||
auto parentSession = FindParentSessionByParentId(GetParentId());
|
||||
if (parentSession == nullptr || parentSession->GetHostSession() == nullptr) {
|
||||
return WMError::WM_ERROR_NULLPTR;
|
||||
|
Loading…
Reference in New Issue
Block a user