summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/defs.h2
-rw-r--r--src/data/data_recent.c9
2 files changed, 4 insertions, 7 deletions
diff --git a/include/defs.h b/include/defs.h
index 560dae6..141dcb1 100644
--- a/include/defs.h
+++ b/include/defs.h
@@ -199,7 +199,7 @@
#define MESSAGE_DELETE_CONTENTS "If you delete this user, their data will also be deleted."
#define MESSAGE_DISCARD_CONTENTS "Discard all entered data?<br> If you are out of this screen, data won't be saved"
-#define KEY_MEDIA "Recent"
+#define KEY_MEDIA "media_id"
#define KEY_CHANNEL "service_id"
#define PACKAGE_LIVETV "org.tizen.live-tv"
diff --git a/src/data/data_recent.c b/src/data/data_recent.c
index a3cdb98..950b5d2 100644
--- a/src/data/data_recent.c
+++ b/src/data/data_recent.c
@@ -51,10 +51,10 @@ static struct datamgr_item *_new_datamgr_item(char *title, char *thumb,
di->action = ITEM_SELECT_ACTION_LAUNCH;
if (subtitle)
di->subtitle = strdup(subtitle);
- if (key)
+ if (key && value) {
di->key = strdup(key);
- if (value)
- di->value = strdup(value);
+ di->value= strdup(value);
+ }
return di;
}
@@ -192,7 +192,6 @@ static void _gallery_list_foreach(gpointer data, gpointer user_data)
di = _new_datamgr_item(aminfo->title, aminfo->thumbnail_path, NULL,
PACKAGE_MEDIAHUB, KEY_MEDIA, rdata->id,
IMAGE_RECENT_ICON_GALLERY, 1);
-
if (di)
dm->list = eina_list_append(dm->list, di);
@@ -264,7 +263,6 @@ static void _movie_list_foreach(gpointer data, gpointer user_data)
di = _new_datamgr_item(aminfo->title, aminfo->thumbnail_path,
dur ? dur : NULL, PACKAGE_MEDIAHUB, KEY_MEDIA,
rdata->id, IMAGE_RECENT_ICON_MOVIE, 1);
-
if (di)
dm->list = eina_list_append(dm->list, di);
@@ -314,7 +312,6 @@ static void _music_list_foreach(gpointer data, gpointer user_data)
di = _new_datamgr_item(aminfo->title, aminfo->thumbnail_path,
aminfo->audio->artist, PACKAGE_MEDIAHUB, KEY_MEDIA,
rdata->id, IMAGE_RECENT_ICON_MUSIC, 1);
-
if (di)
dm->list = eina_list_append(dm->list, di);