Modify download complete icon in quickpanel. 89/67889/2
authormin7.choi <min7.choi@samsung.com>
Fri, 29 Apr 2016 05:30:25 +0000 (14:30 +0900)
committerMinseok Choi <min7.choi@samsung.com>
Fri, 29 Apr 2016 05:48:04 +0000 (22:48 -0700)
[Issue]    http://suprem.sec.samsung.net/jira/browse/TSAM-2053
[Problem]  When the white image is downloaded, look like nothing icon.
[Solution] Change the icon
           thumbnail -> download complete icon
[Verify]   Open google and download image.
Change-Id: I389b6b830a7abd96934f9fd6af07a8c1db63e5b3
Signed-off-by: min7.choi <min7.choi@samsung.com>
src/download-manager-notification.cpp
src/include/download-manager-common.h

index 7a69acc..98ac163 100755 (executable)
@@ -437,7 +437,7 @@ void DownloadNoti::addCompleteNoti()
                DM_LOGD("Failed to create noti");
                return;
        }
-
+#ifdef OLD
        if (!m_item->getThumbnailPath().empty()) {
                err = notification_set_image(notiHandle,
                                NOTIFICATION_IMAGE_TYPE_ICON,
@@ -456,6 +456,14 @@ void DownloadNoti::addCompleteNoti()
                        return;
                }
        }
+#endif
+
+    err = notification_set_image(notiHandle, NOTIFICATION_IMAGE_TYPE_ICON,DM_NOTI_COMPLETED_QUICKPANNEL_ICON_PATH);
+    if (err != NOTIFICATION_ERROR_NONE) {
+                DM_LOGE("Fail to set icon [%d]", err);
+                freeNotiData(notiHandle);
+                return;
+    }
 
        err = notification_set_image(notiHandle, NOTIFICATION_IMAGE_TYPE_ICON_FOR_INDICATOR,
                        DM_NOTI_COMPLETED_INDICATOR_ICON_PATH);
index a23b636..a41f122 100755 (executable)
 #define DM_NOTI_COMPLETED_INDICATOR_ICON_PATH IMAGEDIR"/B03_processing_download_completed.png"
 #endif
 
+#define DM_NOTI_COMPLETED_QUICKPANNEL_ICON_PATH "/usr/apps/org.tizen.quickpanel/shared/res/noti_icons/Common/noti_download_complete.png"
+
 // Other defines
 #define MAX_FILE_PATH_LEN 256
 #define MAX_BUF_LEN 256