mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 15:00:12 +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");
|
||||
return;
|
||||
}
|
||||
session->UnregisterSessionStateChangeListenser();
|
||||
session->UnregisterSessionChangeListeners();
|
||||
}
|
||||
|
||||
void JsSceneSession::ProcessWindowDragHotAreaRegister()
|
||||
|
@ -164,7 +164,7 @@ public:
|
||||
WSError SetSessionIcon(const std::shared_ptr<Media::PixelMap> &icon);
|
||||
void SetUpdateSessionIconListener(const NofitySessionIconUpdatedFunc& func);
|
||||
void SetSessionStateChangeListenser(const NotifySessionStateChangeFunc& func);
|
||||
void UnregisterSessionStateChangeListenser();
|
||||
void UnregisterSessionChangeListeners();
|
||||
void SetSessionStateChangeNotifyManagerListener(const NotifySessionStateChangeNotifyManagerFunc& func);
|
||||
void SetRequestFocusStatusNotifyManagerListener(const NotifyRequestFocusStatusNotifyManagerFunc& func);
|
||||
void SetNotifyUILostFocusFunc(const NotifyUILostFocusFunc& func);
|
||||
|
@ -1345,10 +1345,13 @@ void Session::SetSessionStateChangeListenser(const NotifySessionStateChangeFunc&
|
||||
WLOGFD("SetSessionStateChangeListenser, id: %{public}d", GetPersistentId());
|
||||
}
|
||||
|
||||
void Session::UnregisterSessionStateChangeListenser()
|
||||
void Session::UnregisterSessionChangeListeners()
|
||||
{
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user