mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-18 16:24:27 -04:00
bugfix for custom animation invalid
Signed-off-by: chyyy0213 <chenhaiying3@huawei.com> Change-Id: I8c3cbe20ca3ae4e28579a9f9772e61540bbc0f1f
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user