!7529 修复UIExtension多实例时概率冻屏

Merge pull request !7529 from wanganjie/fix_stability
This commit is contained in:
openharmony_ci 2024-07-19 01:53:08 +00:00 committed by Gitee
commit 0d4a68a507
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -92,13 +92,13 @@ WMError WindowExtensionSessionImpl::Create(const std::shared_ptr<AbilityRuntime:
if (context_) {
abilityToken_ = context_->GetToken();
}
AddExtensionWindowStageToSCB();
WMError ret = Connect();
if (ret == WMError::WM_OK) {
MakeSubOrDialogWindowDragableAndMoveble();
std::unique_lock<std::shared_mutex> lock(windowExtensionSessionMutex_);
windowExtensionSessionSet_.insert(this);
}
AddExtensionWindowStageToSCB();
state_ = WindowState::STATE_CREATED;
isUIExtensionAbilityProcess_ = true;
TLOGI(WmsLogTag::WMS_LIFE, "Created name:%{public}s %{public}d successfully.",