Display the file URL 36/77236/1 accepted/tizen/common/20160629.223217 accepted/tizen/ivi/20160630.003242 accepted/tizen/mobile/20160630.003152 accepted/tizen/wearable/20160630.003135 submit/tizen/20160629.073821
authorjaekuk, lee <juku1999@samsung.com>
Wed, 29 Jun 2016 06:53:00 +0000 (15:53 +0900)
committerjaekuk, lee <juku1999@samsung.com>
Wed, 29 Jun 2016 06:53:00 +0000 (15:53 +0900)
Change-Id: I04eda472f913cca798aeb5b0e98ff988c83feafe
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
packaging/org.tizen.download-manager.spec
src/download-manager-notification.cpp

index 0190495..910945e 100755 (executable)
@@ -1,7 +1,7 @@
 %define _ux_define tizen2.3
 Name:  org.tizen.download-manager
 Summary:       Application for support of the content download
-Version:       0.3.7
+Version:       0.3.8
 Release:       1
 License:       Flora-1.1
 Group:         misc
index 085d075..a79f7ca 100755 (executable)
@@ -178,6 +178,20 @@ void DownloadNoti::addOngoingNoti()
                return;
        }
 
+       if(!strcmp(tmpStr.c_str(), DM_BODY_TEXT_NO_NAME))
+       {
+               const char *url = NULL;
+               url=m_item->getUrl().c_str();
+               err = notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_CONTENT, url, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
+               if (err != NOTIFICATION_ERROR_NONE)
+               {
+                       DM_LOGE("Fail to set content [%d]", err);
+                       freeNotiData(m_notiHandle);
+                       m_notiHandle = NULL;
+                       return;
+               }
+       }
+
        err = notification_set_image(notiHandle, NOTIFICATION_IMAGE_TYPE_ICON,
                        DM_NOTI_ONGOING_ICON_PATH);
        if (err != NOTIFICATION_ERROR_NONE) {