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

Merge pull request !48705 from 胡占江/hzj_popup_20241116
This commit is contained in:
openharmony_ci 2024-11-18 07:56:10 +00:00 committed by Gitee
commit ef994acc28
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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