diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-05-30 19:02:12 +0200 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2019-05-30 19:07:53 +0200 |
commit | 5292729e376338472a025c3bf27f6c80e755e445 (patch) | |
tree | 0ba17b87b2c6becd58673a8e08ff184f83fe574c | |
parent | ba8e4dc17f08c4dd367b71a3342703dd1ec5eec6 (diff) | |
download | efl-5292729e376338472a025c3bf27f6c80e755e445.tar.gz |
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
-rw-r--r-- | src/lib/elementary/efl_ui_active_view_container.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |