summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-05-30 19:02:12 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-30 19:07:53 +0200
commit5292729e376338472a025c3bf27f6c80e755e445 (patch)
tree0ba17b87b2c6becd58673a8e08ff184f83fe574c
parentba8e4dc17f08c4dd367b71a3342703dd1ec5eec6 (diff)
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.c3
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,
523 pd->curr.page = index -1; 523 pd->curr.page = index -1;
524 if (eina_list_count(pd->content_list) > 0 && efl_alive_get(obj)) 524 if (eina_list_count(pd->content_list) > 0 && efl_alive_get(obj))
525 efl_ui_active_view_active_index_set(obj, new_curr_page); 525 efl_ui_active_view_active_index_set(obj, new_curr_page);
526 else
527 pd->curr.page = -1;
526 } 528 }
529
527 //position has updated 530 //position has updated
528 if (early_curr_page != pd->curr.page && early_curr_page != index && 531 if (early_curr_page != pd->curr.page && early_curr_page != index &&
529 pd->indicator && !pd->transition) 532 pd->indicator && !pd->transition)