From a235ed20d061b933fb89cbd7b55efd06f17727c5 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Wed, 1 Jul 2020 15:49:40 +0900 Subject: [PATCH] elc_naviframe: fix to show pushed item if top item is deleted If top item is deleted in "transition,finished" smart callback by user before _on_item_push_finished is not finished, then pushed item is hidden in _on_item_push_finished and no item is visible. To resolve the above issue, _on_item_push_finished does not hide pushed item if pushed item becomes top item. Change-Id: I8d7d31e681f52c66accb7ce2029232a35ee86025 --- src/lib/elementary/elc_naviframe.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/elementary/elc_naviframe.c b/src/lib/elementary/elc_naviframe.c index afbfec3..5bc3654 100755 --- a/src/lib/elementary/elc_naviframe.c +++ b/src/lib/elementary/elc_naviframe.c @@ -1252,6 +1252,13 @@ _on_item_push_finished(void *data, ELM_NAVIFRAME_DATA_GET(WIDGET(it), sd); + /* If pushed item becomes top item, then do not hide pushed item view. + * If top item is deleted in "transition,finished" smart callback by user + * before this function is called, then pushed item becomes top item. + */ + if (EO_OBJ(it) == elm_naviframe_top_item_get(WIDGET(it))) + return; + evas_object_hide(VIEW(it)); //TIZEN_ONLY(20161122): add state_notify api -- 2.7.4