【popup】修复气泡消失时概率闪一下的问题

Signed-off-by: huzhanjiang <huzhanjiang@huawei.com>
Change-Id: I39f5fefb27e93a345b8a5a668c35143c4b6c54ad
This commit is contained in:
huzhanjiang 2024-11-16 20:37:58 +08:00
parent 3e1a891f33
commit 712e1e3cbc

View File

@ -1150,10 +1150,11 @@ void SubwindowOhos::HideSubWindowNG()
Platform::DialogContainer::DestroyContainer(Container::CurrentId()); Platform::DialogContainer::DestroyContainer(Container::CurrentId());
} }
} else { } else {
HideWindow();
auto context = container->GetPipelineContext(); auto context = container->GetPipelineContext();
CHECK_NULL_VOID(context); if (context) {
context->FlushPipelineImmediately(); context->FlushPipelineImmediately();
}
HideWindow();
} }
} }