mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 06:50:40 +00:00
!10198 avoid_area_controller.cpp UpdateAvoidAreaIfNeed 加入应用进入后台不更新状态栏的操作
Merge pull request !10198 from wzlwzl/memory_leak_avoid_area_controller
This commit is contained in:
commit
2cd3dc4c01
@ -191,6 +191,10 @@ void AvoidAreaController::UpdateOverlayWindowIfNeed(const sptr<WindowNode>& node
|
||||
bool AvoidAreaController::UpdateAvoidAreaIfNeed(const AvoidArea& avoidArea, const sptr<WindowNode>& node,
|
||||
AvoidAreaType avoidAreaType)
|
||||
{
|
||||
if (!node->currentVisibility_) {
|
||||
WLOGFD("window: %{public}u is not visible, don't update avoid area", node->GetWindowId());
|
||||
return false;
|
||||
}
|
||||
auto iter = lastUpdatedAvoidArea_.find(node->GetWindowId());
|
||||
bool needUpdate = true;
|
||||
if (iter != lastUpdatedAvoidArea_.end()) {
|
||||
|
Loading…
Reference in New Issue
Block a user