summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-04 19:55:50 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-07 13:20:47 +0200
commit66010e5a9f29e3f50adbe5f58c440ff1521d99c6 (patch)
tree54f65d01d5ff36e0a4973d31276ffb25d496c86c
parent08ea94e9f9e9c93db3936a0e35892f868da90f2b (diff)
downloadefl-66010e5a9f29e3f50adbe5f58c440ff1521d99c6.tar.gz
efl_ui_active_view: fix plain view_manager
the problem here is, when we update content. We need to unset visibility to the *old* content, and set visibility to the *new* content. This is now finally fixed. fix T8002 Reviewed-by: Jaehyun Cho <jae_hyun.cho@samsung.com> Differential Revision: https://phab.enlightenment.org/D9073
-rw-r--r--src/lib/elementary/efl_ui_active_view_view_manager_plain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_active_view_view_manager_plain.c b/src/lib/elementary/efl_ui_active_view_view_manager_plain.c
index 32c530d827..ea60d01627 100644
--- a/src/lib/elementary/efl_ui_active_view_view_manager_plain.c
+++ b/src/lib/elementary/efl_ui_active_view_view_manager_plain.c
@@ -86,8 +86,10 @@ _content_changed(Eo *obj, Efl_Ui_Active_View_View_Manager_Plain_Data *pd)
{
if (efl_ui_active_view_active_index_get(pd->container) != pd->current_content)
{
+ int old_current_content = pd->current_content;
pd->current_content = efl_ui_active_view_active_index_get(pd->container);
- efl_gfx_entity_visible_set(efl_pack_content_get(pd->container, pd->current_content), EINA_FALSE);
+ efl_gfx_entity_visible_set(efl_pack_content_get(pd->container, old_current_content), EINA_FALSE);
+ efl_gfx_entity_visible_set(efl_pack_content_get(pd->container, pd->current_content), EINA_TRUE);
_geom_sync(obj, pd);
_emit_position(obj, pd);
}