Deferred title property set. 44/79644/3
authorWoochan Lee <wc0917.lee@samsung.com>
Tue, 12 Jul 2016 07:32:35 +0000 (16:32 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 18 Jul 2016 05:08:26 +0000 (22:08 -0700)
Change-Id: Ifac9f61fe2509c14e37859993b06927967c9090d

src/lib/efl/mobile/UiStandardView.cpp

index 919e1e8e3ce1a109dddeaa4f21f2b562e74ff5c8..b11d8a19e29b4b72de260dc3dedf56b111569f31 100644 (file)
@@ -36,6 +36,7 @@ private:
        Elm_Toolbar *_toolbar = NULL;            //Toolbar
        Elm_Button *_titleLeftBtn = NULL;        //Title left button
        Elm_Button *_titleRightBtn = NULL;       //Title right button
+       bool _titleVisible = true;
 
        bool _createLayout();
        bool _destroyLayout();
@@ -275,7 +276,7 @@ bool UiStandardViewImpl::setTitle(const char *text)
 
        elm_object_part_text_set(layout, "elm.text.title", text);
 
-       if (text) elm_object_signal_emit(layout, "elm,state,title,show", "viewmgr");
+       if (text && this->_titleVisible) elm_object_signal_emit(layout, "elm,state,title,show", "viewmgr");
        else elm_object_signal_emit(layout, "elm,state,title,hide", "viewmgr");
 
        return true;
@@ -398,6 +399,8 @@ Evas_Object *UiStandardViewImpl::getBase()
 
 bool UiStandardViewImpl::setTitleVisible(bool visible, bool anim)
 {
+       this->_titleVisible = visible;
+
        //FIXME: save visible, anim value. they can be used in layout created time.
        Elm_Layout *layout = this->getBase();
        if (!layout) {