summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorm.kawonczyk <m.kawonczyk@samsung.com>2016-07-07 15:26:48 +0200
committerm.kawonczyk <m.kawonczyk@samsung.com>2016-07-07 15:26:48 +0200
commit82a932e1255bc675aabacaccf4337c7390ef1cae (patch)
treeef514e9f89b2560185f73c95bf42f06f987785b8
parentd71824c709937151336b0472e52b08e4264623fc (diff)
downloadbrowser-82a932e1255bc675aabacaccf4337c7390ef1cae.tar.gz
browser-82a932e1255bc675aabacaccf4337c7390ef1cae.tar.bz2
browser-82a932e1255bc675aabacaccf4337c7390ef1cae.zip
History not visible when opened first time
[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
-rw-r--r--services/SimpleUI/SimpleUI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/SimpleUI/SimpleUI.cpp b/services/SimpleUI/SimpleUI.cpp
index bd1cf104..db9cf70d 100644
--- a/services/SimpleUI/SimpleUI.cpp
+++ b/services/SimpleUI/SimpleUI.cpp
@@ -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()