[TSAM-11764] Avoid genlist append in recorder mode 66/106566/1
authorRavi Kiran K N <ravi.kiran@samsung.com>
Mon, 19 Dec 2016 11:03:46 +0000 (16:33 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Thu, 22 Dec 2016 05:18:34 +0000 (10:48 +0530)
Avoid appending the item to gengrid when the mode
is album recorder

Change-Id: I4d72686fbd7ddd9a2a5b497f3215b3810f9c9d00
Signed-off-by: Ravi Kiran K N <ravi.kiran@samsung.com>
src/features/gl-albums.c

index 7f67a7c..ad136ea 100644 (file)
@@ -1609,7 +1609,8 @@ int _gl_albums_create_items(void *data, Evas_Object * parent)
                if (album_item->cluster->type < GL_STORE_T_ALL) {
                        ad->albuminfo.elist->edit_cnt++;
                } else {
-                       if (gl_get_view_mode(ad) != GL_VIEW_ALBUMS) {
+                       if (!(gl_get_view_mode(ad) != GL_VIEW_ALBUMS ||
+                                       gl_get_view_mode(ad) != GL_VIEW_ALBUM_REORDER)) {
                                continue;
                        }
                }