| 353 | getChildAt(i - 1)->removeViewFromParent(viewTransactionScope, false); |
| 354 | } |
| 355 | } |
| 356 | setView(viewTransactionScope, nullptr, nullptr); |
| 357 | return true; |
| 358 | } else { |
| 359 | return false; |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | bool ViewNode::createView(ViewTransactionScope& viewTransactionScope, const Ref<Animator>& animator) { |
| 364 | if (hasView() || isLayout() || _viewNodeTree == nullptr || _viewFactory == nullptr) { |
| 365 | return false; |
| 366 | } |
| 367 | |
| 368 | auto view = _viewFactory->createView(_viewNodeTree, this, true); |
| 369 | |
| 370 | if (view != nullptr) { |
| 371 | viewTransactionScope.transaction().moveViewToTree(view, _viewNodeTree, this); |
no outgoing calls
no test coverage detected