summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehun Lim <jehun.lim@samsung.com>2015-10-14 01:06:36 (GMT)
committerJehun Lim <jehun.lim@samsung.com>2015-10-14 01:06:36 (GMT)
commit571b829d3fceb33da210d6f7debfa50f1623c4f3 (patch)
tree21066cb70ea3ff5bbfc6155cc59bf8ebda2e4a8b
parent07e0bbcd9ad77ff25775abaf2fbf151ff3c80b37 (diff)
downloadair_mediahub-571b829d3fceb33da210d6f7debfa50f1623c4f3.zip
air_mediahub-571b829d3fceb33da210d6f7debfa50f1623c4f3.tar.gz
air_mediahub-571b829d3fceb33da210d6f7debfa50f1623c4f3.tar.bz2
detail: modify to get album info (prevent: 486648)refs/changes/83/49483/1
Change-Id: Iba6b8fec04d7c5152ad564737946221549488c01 Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
-rw-r--r--src/view/detail.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/view/detail.c b/src/view/detail.c
index 629f210..59d77a5 100644
--- a/src/view/detail.c
+++ b/src/view/detail.c
@@ -683,10 +683,19 @@ static void _get_album_info(struct _priv *priv, const char *title)
elm_object_part_text_set(priv->base, PART_DETAIL_TITLE, title);
+ elm_object_signal_emit(priv->base,
+ SIG_HIDE_THUMBNAIL, SIG_SOURCE_SRC);
+
am = eina_list_nth(priv->media_list, 0);
+
mi = app_media_get_info(am);
+ if (!mi) {
+ snprintf(buf, sizeof(buf), "%d songs",
+ eina_list_count(priv->media_list));
+ return;
+ }
- if (mi && mi->thumbnail_path) {
+ if (mi->thumbnail_path) {
elm_image_file_set(priv->thumbnail,
mi->thumbnail_path, NULL);
elm_image_aspect_fixed_set(priv->thumbnail, EINA_FALSE);