[TSAM-8550] set user profile image with NOTIFICATION_IMAGE_TYPE_THUMBNAIL to show... 17/91117/1
authorKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 6 Oct 2016 02:22:27 +0000 (11:22 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 6 Oct 2016 02:22:27 +0000 (11:22 +0900)
Change-Id: I79708a2a645c371d20a0225bc9db05c97134edd1

manager/src/msg-manager-notification.cpp

index 2b5b491..97e6bad 100644 (file)
@@ -1001,7 +1001,8 @@ void setIcon(notification_h noti_h, MSG_MGR_NOTI_INFO_S *noti_info)
                        } else {
                                if (noti_info->imagePath[0] != '\0') {
                                        setNotiImage(noti_h, NOTIFICATION_IMAGE_TYPE_ICON_FOR_LOCK, noti_info->imagePath);
-                                       setNotiImage(noti_h, NOTIFICATION_IMAGE_TYPE_ICON, noti_info->imagePath);
+                                       /* for user profile image, use NOTIFICATION_IMAGE_TYPE_THUMBNAIL to show icon as circle */
+                                       setNotiImage(noti_h, NOTIFICATION_IMAGE_TYPE_THUMBNAIL, noti_info->imagePath);
                                } else {
                                        setNotiImage(noti_h, NOTIFICATION_IMAGE_TYPE_ICON_FOR_LOCK, MSG_NO_CONTACT_PROFILE_ICON_PATH);
                                        setNotiImage(noti_h, NOTIFICATION_IMAGE_TYPE_ICON, MSG_NO_CONTACT_PROFILE_ICON_PATH);
@@ -1200,7 +1201,8 @@ void setActiveIcon(notification_h noti_h, MSG_MGR_NOTI_INFO_S *noti_info)
                        break;
                default:
                        if (noti_info->imagePath[0] != '\0')
-                               setNotiImage(noti_h, NOTIFICATION_IMAGE_TYPE_ICON, noti_info->imagePath);
+                               /* for user profile image, use NOTIFICATION_IMAGE_TYPE_THUMBNAIL to show icon as circle */
+                               setNotiImage(noti_h, NOTIFICATION_IMAGE_TYPE_THUMBNAIL, noti_info->imagePath);
                        else
                                setNotiImage(noti_h, NOTIFICATION_IMAGE_TYPE_ICON, MSG_NO_CONTACT_PROFILE_ICON_PATH);