mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 15:10:30 +00:00
!48828 onAreaChange: 组件内部覆盖回调不会重新触发回调
Merge pull request !48828 from 胡清云/1118_onAreaChange
This commit is contained in:
commit
6830d5fc38
@ -292,8 +292,10 @@ void EventHub::AddInnerOnAreaChangedCallback(int32_t id, OnAreaChangedFunc&& cal
|
||||
CHECK_NULL_VOID(frameNode);
|
||||
pipeline->AddOnAreaChangeNode(frameNode->GetId());
|
||||
frameNode->InitLastArea();
|
||||
if (onAreaChangedInnerCallbacks_.find(id) == onAreaChangedInnerCallbacks_.end()) {
|
||||
hasInnerAreaChangeUntriggered_.emplace_back(id);
|
||||
}
|
||||
onAreaChangedInnerCallbacks_[id] = std::move(callback);
|
||||
hasInnerAreaChangeUntriggered_.emplace_back(id);
|
||||
}
|
||||
|
||||
void EventHub::RemoveInnerOnAreaChangedCallback(int32_t id)
|
||||
|
Loading…
Reference in New Issue
Block a user