TT-106 Removed MoreMenu's tiles from BookmarkManager screen 85/46985/9 accepted/tizen/tv/20150903.053724 submit/tizen_tv/20150903.010345
authort.dakowicz <t.dakowicz@samsung.com>
Thu, 27 Aug 2015 16:32:57 +0000 (18:32 +0200)
committerTomasz Dakowicz <t.dakowicz@samsung.com>
Wed, 2 Sep 2015 07:51:51 +0000 (00:51 -0700)
[Issue#] https://bugs.tizen.org/jira/browse/TT-106
[Problem] Tiles from MoreMenu was visible and accessible
          from BookmarkManager screen
[Caused] Items were not cleared/hidden
[Solution] This solution just clear those problematic items from
           MoreMenu - it should be removed after the new correct
           displaying design will be done
[Verify] MoreMenu->BookmarkManager or
         MainUI->Bookmarks->BookmarkManager
         Check if any invisible tile is accessible or visible

Change-Id: I371496d9befb64095721354f76fbb56d5fd18fc9

services/SimpleUI/SimpleUI.cpp

index 6f0abe5..14ce4b8 100644 (file)
@@ -646,6 +646,14 @@ void SimpleUI::onBookmarkButtonClicked(const std::string&)
 void SimpleUI::onBookmarkManagerButtonClicked(const std::string&)
 {
     BROWSER_LOGD("[%s]", __func__);
+    if(m_mainUI) {               // TODO: remove this section when naviframes will be available
+        m_mainUI->clearBookmarkGengrid();
+    }
+
+    if(m_moreMenuUI) {               // TODO: remove this section when naviframes will be available
+        m_moreMenuUI->clearItems();
+    }
+
     showBookmarkManagerMenu();
 }
 
@@ -1217,6 +1225,16 @@ void SimpleUI::closeBookmarkManagerMenu(std::string& str)
 {
     BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
     m_bookmarkManagerUI.reset();
+
+    if(m_moreMenuUI) {
+        m_moreMenuUI.reset();
+        showMoreMenu();
+    }
+
+    if(m_mainUI) {
+        m_mainUI->addBookmarkItems(getBookmarks());
+        m_mainUI->showBookmarks();
+    }
 }
 
 void SimpleUI::openLinkFromPopup(const std::string &uri)