Fixed TSAM-9048 Popup rename disappear after click OK 97/92697/1
authorbhutani.92 <bhutani.92@samsung.com>
Tue, 18 Oct 2016 07:32:48 +0000 (13:02 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Tue, 18 Oct 2016 07:32:48 +0000 (13:02 +0530)
Change-Id: I3b18f829b4527d3f0f0d65c9174969b82dd1279f
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
src/widget/mp-edit-playlist.c

index 52c9847..4caf5c1 100755 (executable)
@@ -576,7 +576,6 @@ mp_edit_playlist_rename_done_cb(void *data, Evas_Object * obj, void *event_info)
        text = mp_util_isf_get_edited_str(editfiled_entry, TRUE);
 
        if (!mp_util_is_playlist_name_valid((char *)text)) {
-               //_mp_edit_playlist_destory(mp_playlist_data);
                mp_widget_notify_cb_popup(ad, GET_STR("IDS_MUSIC_POP_UNABLE_RENAME_PLAYLIST"), _mp_edit_playlist_popup_timeout_cb, (void*)editfiled_entry);
                IF_FREE(text);
                return ;
@@ -587,14 +586,10 @@ mp_edit_playlist_rename_done_cb(void *data, Evas_Object * obj, void *event_info)
                        ERROR_TRACE("Fail to get playlist count by name: %d", ret);
                        mp_widget_text_popup(ad, GET_STR("IDS_MUSIC_POP_UNABLE_RENAME_PLAYLIST"));
                } else if (exist) {
-                       _mp_edit_playlist_destory(mp_playlist_data);
-                       IF_FREE(text);
-                       //mp_widget_text_popup(ad, GET_STR(STR_MP_POP_EXISTS));
-                       Evas_Object *popup = mp_popup_create(ad->win_main, MP_POPUP_NORMAL, NULL, NULL, NULL, ad);
-                       /*set text*/
-                       mp_util_domain_translatable_text_set(popup, STR_MP_POP_EXISTS);
-                       mp_popup_button_set(popup, MP_POPUP_BTN_1, STR_MP_OK, MP_POPUP_YES);
-                       evas_object_show(popup);
+                       char *message = NULL;
+                       message = g_strdup_printf(GET_STR(STR_MP_POP_PLAYLIST_EXISTS), text);
+                       mp_widget_text_popup(ad, message);
+                       mp_edit_playlist_content_create(mp_playlist_data);
                        return;
                } else {
                        ret = mp_media_info_playlist_rename(playlist, text);