navigationbar - fixed a to_content_pop API logic error.
authorChunEon Park <chuneon.park@samsung.com>
Mon, 22 Aug 2011 04:02:49 +0000 (13:02 +0900)
committerChunEon Park <chuneon.park@samsung.com>
Tue, 23 Aug 2011 00:44:40 +0000 (09:44 +0900)
When the top item is same with given parameter content,

then return rightly to avoid unnecessary procedure.

Change-Id: Ia50df41414ead4e7f1a4dbf8acfa65d78135d648

src/lib/elc_navigationbar.c

index c64d147..5697e40 100644 (file)
@@ -856,6 +856,9 @@ elm_navigationbar_to_content_pop(Evas_Object *obj, Evas_Object *content)
    //find item to be popped and to be shown
    it = prev_it = NULL;
    ll = eina_list_last(wd->stack);
+
+   if (elm_navigationbar_content_top_get(obj) == content) return;
+
    if (ll)
      {
         prev_it = ll->data;