bugfix for custom animation invalid

Signed-off-by: chyyy0213 <chenhaiying3@huawei.com>
Change-Id: I8c3cbe20ca3ae4e28579a9f9772e61540bbc0f1f
This commit is contained in:
chyyy0213
2022-08-02 09:44:57 +08:00
parent 318c8753ee
commit 8ff6bb81fe
-5
View File
@@ -998,11 +998,6 @@ static void SetBounds(const sptr<WindowNode>& node, const Rect& winRect, const R
void WindowLayoutPolicy::UpdateSurfaceBounds(const sptr<WindowNode>& node, const Rect& winRect, const Rect& preRect)
{
if (node->GetWindowType() == WindowType::WINDOW_TYPE_APP_COMPONENT ||
node->GetWindowProperty()->GetAnimationFlag() == static_cast<uint32_t>(WindowAnimation::CUSTOM)) {
WLOGFI("not need to update bounds");
return;
}
wptr<WindowNode> weakNode = node;
auto SetBoundsFunc = [weakNode, winRect, preRect]() {
auto winNode = weakNode.promote();