[TSAM-6536] Updated view in case of reorder mode 46/80346/1 submit/tizen_mobile/20160717.082120
authorRahul Dadhich <r.dadhich@samsung.com>
Sun, 17 Jul 2016 05:09:09 +0000 (10:39 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Sun, 17 Jul 2016 05:09:09 +0000 (10:39 +0530)
Change-Id: I08cd569f8636dbc81ab06ebe1dc2fb8b67f74f73
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
src/features/gl-albums.c
src/util/gl-util.c

index d94bcfdd3c8c28c60a11499c6922d414994f6617..ad37511b2dd12c946b69957a69fff81d3007c8bb 100644 (file)
@@ -1042,7 +1042,7 @@ int gl_albums_update_view(void *data)
 
        ad->albuminfo.albums_cnt = 0;
 
-       if (view_mode == GL_VIEW_ALBUMS) {
+       if (view_mode == GL_VIEW_ALBUMS || view_mode == GL_VIEW_ALBUM_REORDER) {
                gl_albums_update_items(data);
                _gl_albums_check_btns(data);
        } else if (view_mode == GL_VIEW_ALBUMS_EDIT) {
index 26989d4bdbf3c18a7f90870cac315fd01c5d53b7..d2d36f6b32dad27aba630294cd0fc81a1511862a 100644 (file)
@@ -2077,7 +2077,7 @@ Eina_Bool gl_update_view(void *data, int mode)
 
        if (view_mode == GL_VIEW_ALBUMS ||
                view_mode == GL_VIEW_ALBUMS_EDIT ||
-               view_mode == GL_VIEW_ALBUMS_RENAME) {
+               view_mode == GL_VIEW_ALBUMS_RENAME || view_mode == GL_VIEW_ALBUM_REORDER) {
                /* Albums list should be updated first */
                gl_albums_update_view(ad);
        } else if (view_mode == GL_VIEW_THUMBS) {