From: Woochan Lee Date: Fri, 8 Apr 2016 09:19:07 +0000 (+0900) Subject: Prev layout hide when effect layout changed. X-Git-Tag: submit/tizen/20160617.075742~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c17e1a707b7689cd3ae622495f5b2bd34c6bdf15;p=platform%2Fcore%2Fuifw%2Fui-viewmgr.git Prev layout hide when effect layout changed. This is for fixing bug. If user set a transition style as "none" on current view. previous layout will be covered up on top view. Change-Id: I6639822805c802270c06364819cf8ccb898dd95e --- diff --git a/src/lib/efl/ui_base_viewmgr.cpp b/src/lib/efl/ui_base_viewmgr.cpp index bbb90e7..703b978 100644 --- a/src/lib/efl/ui_base_viewmgr.cpp +++ b/src/lib/efl/ui_base_viewmgr.cpp @@ -66,9 +66,11 @@ bool ui_base_viewmgr::create_base_layout(Elm_Scroller *scroller, const char *sty Elm_Layout *ui_base_viewmgr::set_transition_layout(string transition_style) { Elm_Layout *effect_layout = NULL; + Elm_Layout *pcontent; - evas_object_hide(elm_object_part_content_unset(this->get_base(), "pcontent")); - evas_object_hide(elm_object_part_content_unset(this->get_base(), "content")); + pcontent = elm_object_part_content_unset(this->get_base(), "pcontent"); + if (pcontent) evas_object_hide(pcontent); + elm_object_part_content_unset(this->get_base(), "content"); if (transition_style.compare(this->transition_style) == 0) return this->layout; @@ -101,7 +103,7 @@ Elm_Layout *ui_base_viewmgr::set_transition_layout(string transition_style) void ui_base_viewmgr::activate_top_view() { Evas_Object *pcontent = elm_object_part_content_unset(this->get_base(), "content"); - evas_object_hide(pcontent); + if (pcontent) evas_object_hide(pcontent); ui_base_view *view = this->get_last_view();