Resolved crash on album view realization 00/73300/1 accepted/tizen/mobile/20160608.000249 submit/tizen_mobile/20160607.134528
authorRahul Dadhich <r.dadhich@samsung.com>
Tue, 7 Jun 2016 11:09:08 +0000 (16:39 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Tue, 7 Jun 2016 11:09:23 +0000 (16:39 +0530)
Change-Id: I021ba69b82c02d8972b4e7ad9330f3c572396766
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
src/view/ge-albums.c

index e8b531a..c4e077f 100644 (file)
@@ -1617,6 +1617,12 @@ static void
 __ge_grid_realized(void *data, Evas_Object *obj, void *ei)
 {
        GE_CHECK(ei);
+       GE_CHECK(data);
+       ge_ugdata *ugd = (ge_ugdata *)data;
+       if (ugd->nocontents) {
+               ge_dbgE("No content layout no need to update items");
+               return;
+       }
        Elm_Object_Item *it = (Elm_Object_Item *)ei;
        ge_item* gitem = elm_object_item_data_get(it);
        GE_CHECK(gitem);
@@ -1796,6 +1802,7 @@ ge_create_gengrid(ge_ugdata *ugd)
                                        no_content,
                                        ugd, NULL,
                                        ugd);
+
        }
        evas_object_show(gengrid);