From 5292729e376338472a025c3bf27f6c80e755e445 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Thu, 30 May 2019 19:02:12 +0200 Subject: [PATCH] efl_ui_active_view: reset count to -1 if no content is left Summary: otherwise we say content is active that is not active anymore. This fixes currently failing testcases. Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9057 --- src/lib/elementary/efl_ui_active_view_container.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/elementary/efl_ui_active_view_container.c b/src/lib/elementary/efl_ui_active_view_container.c index d1f2fcc9b6..30dadd698b 100644 --- a/src/lib/elementary/efl_ui_active_view_container.c +++ b/src/lib/elementary/efl_ui_active_view_container.c @@ -523,7 +523,10 @@ _unpack(Eo *obj, pd->curr.page = index -1; if (eina_list_count(pd->content_list) > 0 && efl_alive_get(obj)) efl_ui_active_view_active_index_set(obj, new_curr_page); + else + pd->curr.page = -1; } + //position has updated if (early_curr_page != pd->curr.page && early_curr_page != index && pd->indicator && !pd->transition)