| 19 | NavigationViewCore::~NavigationViewCore() { getJViewAS<bdn::android::wrapper::NativeNavigationView>().close(); } |
| 20 | |
| 21 | void NavigationViewCore::pushView(std::shared_ptr<View> view, std::string title) |
| 22 | { |
| 23 | auto containerView = std::make_shared<ContainerView>(viewCoreFactory()); |
| 24 | containerView->isLayoutRoot = true; |
| 25 | containerView->addChildView(view); |
| 26 | containerView->visible.bind(view->visible); |
| 27 | containerView->setFallbackLayout(layout()); |
| 28 | |
| 29 | bool isFirst = _stack.empty(); |
| 30 | |
| 31 | _stack.push_back({containerView, view, title}); |
| 32 | updateCurrentView(isFirst, true); |
| 33 | } |
| 34 | |
| 35 | void NavigationViewCore::popView() |
| 36 | { |
nothing calls this directly
no test coverage detected