From 8ff6bb81fe0678ad3e195c84ed19bbcba8ba99b4 Mon Sep 17 00:00:00 2001 From: chyyy0213 Date: Tue, 2 Aug 2022 09:44:57 +0800 Subject: [PATCH] bugfix for custom animation invalid Signed-off-by: chyyy0213 Change-Id: I8c3cbe20ca3ae4e28579a9f9772e61540bbc0f1f --- wmserver/src/window_layout_policy.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wmserver/src/window_layout_policy.cpp b/wmserver/src/window_layout_policy.cpp index c59eced0..6d8b40b7 100644 --- a/wmserver/src/window_layout_policy.cpp +++ b/wmserver/src/window_layout_policy.cpp @@ -998,11 +998,6 @@ static void SetBounds(const sptr& node, const Rect& winRect, const R void WindowLayoutPolicy::UpdateSurfaceBounds(const sptr& node, const Rect& winRect, const Rect& preRect) { - if (node->GetWindowType() == WindowType::WINDOW_TYPE_APP_COMPONENT || - node->GetWindowProperty()->GetAnimationFlag() == static_cast(WindowAnimation::CUSTOM)) { - WLOGFI("not need to update bounds"); - return; - } wptr weakNode = node; auto SetBoundsFunc = [weakNode, winRect, preRect]() { auto winNode = weakNode.promote();