forked from enlightenment/efl
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:
parent
ba8e4dc17f
commit
5292729e37
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue