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
This commit is contained in:
Marcel Hollerbach 2019-05-30 19:02:12 +02:00 committed by Xavi Artigas
parent ba8e4dc17f
commit 5292729e37
1 changed files with 3 additions and 0 deletions

View File

@ -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)