History not visible when opened first time 74/78974/1
authorm.kawonczyk <m.kawonczyk@samsung.com>
Thu, 7 Jul 2016 13:26:48 +0000 (15:26 +0200)
committerm.kawonczyk <m.kawonczyk@samsung.com>
Thu, 7 Jul 2016 13:26:48 +0000 (15:26 +0200)
[Issue]    N/A
[Problem]  History added elements to a non-created view.
[Solution] Create UI before appending elements.
[Verify]   Open History and see if it works correctly.

Change-Id: Iebd5063034468ec554999529d8dd0ba4ebf285bb

services/SimpleUI/SimpleUI.cpp

index bd1cf104f105966fb4898261fcd9963d2787dfcc..db9cf70d30582ac5447ea4786b90534be9e3c876 100644 (file)
@@ -1504,6 +1504,7 @@ void SimpleUI::certPopupButtonClicked(PopupButtons button, std::shared_ptr<Popup
 void SimpleUI::showHistoryUI()
 {
     BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
+    m_viewManager.pushViewToStack(m_historyUI.get());
     m_historyUI->addHistoryItems(m_historyService->getHistoryToday(),
             HistoryPeriod::HISTORY_TODAY);
     m_historyUI->addHistoryItems(m_historyService->getHistoryYesterday(),
@@ -1514,7 +1515,6 @@ void SimpleUI::showHistoryUI()
             HistoryPeriod::HISTORY_LASTMONTH);
     m_historyUI->addHistoryItems(m_historyService->getHistoryOlder(),
             HistoryPeriod::HISTORY_OLDER);
-    m_viewManager.pushViewToStack(m_historyUI.get());
 }
 
 void SimpleUI::closeHistoryUI()