mirror of
https://gitee.com/openharmony/window_window_manager
synced 2025-02-17 06:19:31 +00:00
!3991 修复cpp crash
Merge pull request !3991 from slarkwayne/remote_bugfix1102
This commit is contained in:
commit
8e5f4f28a3
@ -165,7 +165,7 @@ JsSceneSession::~JsSceneSession()
|
|||||||
WLOGFE("session is nullptr");
|
WLOGFE("session is nullptr");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
session->UnregisterSessionStateChangeListenser();
|
session->UnregisterSessionChangeListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
void JsSceneSession::ProcessWindowDragHotAreaRegister()
|
void JsSceneSession::ProcessWindowDragHotAreaRegister()
|
||||||
|
@ -164,7 +164,7 @@ public:
|
|||||||
WSError SetSessionIcon(const std::shared_ptr<Media::PixelMap> &icon);
|
WSError SetSessionIcon(const std::shared_ptr<Media::PixelMap> &icon);
|
||||||
void SetUpdateSessionIconListener(const NofitySessionIconUpdatedFunc& func);
|
void SetUpdateSessionIconListener(const NofitySessionIconUpdatedFunc& func);
|
||||||
void SetSessionStateChangeListenser(const NotifySessionStateChangeFunc& func);
|
void SetSessionStateChangeListenser(const NotifySessionStateChangeFunc& func);
|
||||||
void UnregisterSessionStateChangeListenser();
|
void UnregisterSessionChangeListeners();
|
||||||
void SetSessionStateChangeNotifyManagerListener(const NotifySessionStateChangeNotifyManagerFunc& func);
|
void SetSessionStateChangeNotifyManagerListener(const NotifySessionStateChangeNotifyManagerFunc& func);
|
||||||
void SetRequestFocusStatusNotifyManagerListener(const NotifyRequestFocusStatusNotifyManagerFunc& func);
|
void SetRequestFocusStatusNotifyManagerListener(const NotifyRequestFocusStatusNotifyManagerFunc& func);
|
||||||
void SetNotifyUILostFocusFunc(const NotifyUILostFocusFunc& func);
|
void SetNotifyUILostFocusFunc(const NotifyUILostFocusFunc& func);
|
||||||
|
@ -1345,10 +1345,13 @@ void Session::SetSessionStateChangeListenser(const NotifySessionStateChangeFunc&
|
|||||||
WLOGFD("SetSessionStateChangeListenser, id: %{public}d", GetPersistentId());
|
WLOGFD("SetSessionStateChangeListenser, id: %{public}d", GetPersistentId());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::UnregisterSessionStateChangeListenser()
|
void Session::UnregisterSessionChangeListeners()
|
||||||
{
|
{
|
||||||
sessionStateChangeFunc_ = nullptr;
|
sessionStateChangeFunc_ = nullptr;
|
||||||
WLOGFD("UnregisterSessionStateChangeListenser, id: %{public}d", GetPersistentId());
|
sessionFocusableChangeFunc_ = nullptr;
|
||||||
|
sessionTouchableChangeFunc_ = nullptr;
|
||||||
|
clickFunc_ = nullptr;
|
||||||
|
WLOGFD("UnregisterSessionChangeListenser, id: %{public}d", GetPersistentId());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::SetSessionStateChangeNotifyManagerListener(const NotifySessionStateChangeNotifyManagerFunc& func)
|
void Session::SetSessionStateChangeNotifyManagerListener(const NotifySessionStateChangeNotifyManagerFunc& func)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user