summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoohye Shin <soohye.shin@samsung.com>2015-08-05 15:45:02 +0900
committerSoohye Shin <soohye.shin@samsung.com>2015-08-05 18:33:55 +0900
commit0dfcb57e80eaf66186d83643c089f22ef9f148e3 (patch)
tree212206d2915308eefb189a38fa9e15bb1e0e7aec
parentbc20da6f340e8631fff6d76b567f49e7a4a63989 (diff)
downloadair_home-0dfcb57e80eaf66186d83643c089f22ef9f148e3.tar.gz
air_home-0dfcb57e80eaf66186d83643c089f22ef9f148e3.tar.bz2
air_home-0dfcb57e80eaf66186d83643c089f22ef9f148e3.zip
launch media hub with recent media
Change-Id: Ifa013c73b57c50f72381e0813b7f2397d8cfc6fe Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
-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);