[TSAM-11705] updating navi title in reorder view on lang change 64/106564/1
authorRahul Dadhich <r.dadhich@samsung.com>
Fri, 16 Dec 2016 07:10:49 +0000 (12:40 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Thu, 22 Dec 2016 05:18:34 +0000 (10:48 +0530)
Change-Id: Ic8957f36e4f8c032cbd49167ff2c9536b4f69f54
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
src/util/gl-lang.c

index fb63932..34375d2 100644 (file)
@@ -38,7 +38,12 @@ static int __gl_lang_update_albums(void *data)
        GL_CHECK_VAL(data, -1);
        gl_appdata *ad = (gl_appdata *) data;
        GL_CHECK_VAL(ad->ctrlinfo.nf_it, -1);
-       _gl_ui_change_navi_title(ad->ctrlinfo.nf_it, GL_STR_ID_ALBUM, true);
+       int view_mode = gl_get_view_mode(ad);
+       if (view_mode == GL_VIEW_ALBUM_REORDER) {
+               _gl_ui_change_navi_title(ad->ctrlinfo.nf_it, GL_STR_ID_REORDER, true);
+       } else {
+               _gl_ui_change_navi_title(ad->ctrlinfo.nf_it, GL_STR_ID_ALBUM, true);
+       }
        return 0;
 }
 
@@ -67,6 +72,7 @@ int _gl_lang_update(void *data)
 
        switch (view_mode) {
        case GL_VIEW_ALBUMS:
+       case GL_VIEW_ALBUM_REORDER:
                __gl_lang_update_albums(data);
                break;
        case GL_VIEW_ALBUMS_EDIT: