mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-28 01:21:13 +00:00
!7529 修复UIExtension多实例时概率冻屏
Merge pull request !7529 from wanganjie/fix_stability
This commit is contained in:
commit
0d4a68a507
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user