[TSAM-8606] Disabled menu in reorder view after item update 24/90924/1
authorRahul Dadhich <r.dadhich@samsung.com>
Wed, 5 Oct 2016 03:30:57 +0000 (09:00 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Wed, 5 Oct 2016 03:30:57 +0000 (09:00 +0530)
Change-Id: Ib97273ad2f3a82b95f0768c9bfa0faac5eac58f8
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
src/features/gl-albums.c

index d09679c..74e050b 100644 (file)
@@ -833,6 +833,10 @@ GL_ALBUMS_SHOW_NOCONTENTS:
                        evas_object_del(ad->albuminfo.view);
                }
 
+               if (view_mode == GL_VIEW_ALBUM_REORDER) {
+                       gl_albums_change_to_view(data);
+                       return 0;
+               }
                Evas_Object *noc = _gl_nocontents_create(ad->ctrlinfo.ctrlbar_view_ly);
                ad->albuminfo.nocontents = noc;
                ad->albuminfo.view = noc;
@@ -903,9 +907,11 @@ int gl_albums_update_view(void *data)
 
        ad->albuminfo.albums_cnt = 0;
 
-       if (view_mode == GL_VIEW_ALBUMS || view_mode == GL_VIEW_ALBUM_REORDER) {
+       if (view_mode == GL_VIEW_ALBUMS) {
                gl_albums_update_items(data);
                _gl_albums_check_btns(data);
+       } else if (view_mode == GL_VIEW_ALBUM_REORDER) {
+               gl_albums_update_items(data);
        } else if (view_mode == GL_VIEW_ALBUMS_EDIT) {
                _gl_albums_edit_update_view(data);
        } else if (view_mode == GL_VIEW_ALBUMS_RENAME) {