TSAM-6837 new genlist item is invisible by default if filter is set 72/93472/2
authorOleksander Kostenko <o.kostenko@samsung.com>
Mon, 24 Oct 2016 10:48:16 +0000 (13:48 +0300)
committerOleksander Kostenko <o.kostenko@samsung.com>
Mon, 24 Oct 2016 11:01:15 +0000 (14:01 +0300)
TSAM-8313 Redundant Time when compose message

Change-Id: Ie92edd1719472543b46a6207e5aee274f306799d
Signed-off-by: Oleksander Kostenko <o.kostenko@samsung.com>
src/Common/View/inc/View.h
src/Conversation/ConvList/Controller/src/ConvList.cpp
src/Conversation/ConvList/View/src/ComposeListViewItem.cpp

index 3d1fa21d9e05ac7f5ef27ef07314fef69dcee8d1..9238269fbe36f447fa7f6f2a078fa032a1abf7b3 100644 (file)
@@ -286,6 +286,12 @@ namespace Msg
              */
             void setText(const TText &text, const char *part = nullptr);
 
+            /**
+             * @brief Set the style to used by a given widget
+             * @param[in] style The name of the style to use on it
+             */
+            void setStyle(const std::string &style);
+
             /**
              * @brief Gets the edje object
              * @return edje object
@@ -469,6 +475,11 @@ namespace Msg
         setText(m_pEo, text, part);
     }
 
+    inline void View::setStyle(const std::string &style)
+    {
+        elm_object_style_set(getEo(), style.c_str());
+    }
+
     inline void View::setText(Evas_Object *obj, const TText &text, const char *part)
     {
         elm_object_domain_translatable_part_text_set(obj, part, text.getDomain(), text.getMsg());
index fce0b7f63d4aa31a12b05fd8c414e16c43ca8814..2cd5305ea7b384cd87e1d40b72d89bbde10c70a4 100644 (file)
@@ -27,6 +27,7 @@ namespace
 {
     const int minMessagesBulk = 100;
     const int additionalMessagesBulk = 50;
+    const std::string solidStyle = "solid/default";
 }
 
 ConvList::ConvList(Evas_Object *parent, App &app, WorkingDirRef workingDir)
@@ -111,6 +112,7 @@ Evas_Object *ConvList::createList(Evas_Object *parent)
     m_pList->setListener(this);
     m_pList->setMode(ELM_LIST_COMPRESS);
     m_pList->setHomogeneous(false);
+    m_pList->setStyle(solidStyle);
     m_pList->show();
     m_pList->addEventCb(EVAS_CALLBACK_RESIZE, EVAS_EVENT_CALLBACK(ConvList, onListResized), this);
 
index 78d3c1deb97cd6026427dd89686421f999ef36b0..e90ebb13e7c00f7d7ab8630938b9776bd89e3364 100644 (file)
@@ -77,7 +77,6 @@ void ComposeListViewItem::navigate()
 
 void ComposeListViewItem::show(bool show)
 {
- // FIXME: setFilter() do not works properly
- // m_Visibility = show;
- // getOwner()->setFilter(&m_Visibility);
+    m_Visibility = show;
+    getOwner()->setFilter(&m_Visibility);
 }