Changed navigateTo() to determine whether view is already added by checking
the presence of the page instead of parent navigator which is impossible to
find from non-current TabNavigator page.
Change-Id: I73622706fe2e3b355741b970a7c3a2cc20c517d7
Signed-off-by: Eugene Kurzberg <i.kurtsberg@samsung.com>
return;
}
- if (!view->getNavigator()) {
+ NavigatorPage *page = view->getPage();
+ if (!page) {
addView(view);
+ page = view->getPage();
}
- NavigatorPage *page = view->getPage();
if (page != m_CurrentPage) {
navigateToPage(page);
}
void View::onNavigatorAttached(NavigatorPage *page)
{
- if (m_Page) {
- m_Page->close();
- }
-
m_Page = page;
onPageAttached(m_Page);
}