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)
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)
86{ 86{
87 if (efl_ui_active_view_active_index_get(pd->container) != pd->current_content) 87 if (efl_ui_active_view_active_index_get(pd->container) != pd->current_content)
88 { 88 {
89 int old_current_content = pd->current_content;
89 pd->current_content = efl_ui_active_view_active_index_get(pd->container); 90 pd->current_content = efl_ui_active_view_active_index_get(pd->container);
90 efl_gfx_entity_visible_set(efl_pack_content_get(pd->container, pd->current_content), EINA_FALSE); 91 efl_gfx_entity_visible_set(efl_pack_content_get(pd->container, old_current_content), EINA_FALSE);
92 efl_gfx_entity_visible_set(efl_pack_content_get(pd->container, pd->current_content), EINA_TRUE);
91 _geom_sync(obj, pd); 93 _geom_sync(obj, pd);
92 _emit_position(obj, pd); 94 _emit_position(obj, pd);
93 } 95 }