Added tag for Notification Indicator 85/85785/1 submit/tizen_mobile/20160831.121014
authorbhutani.92 <bhutani.92@samsung.com>
Mon, 29 Aug 2016 06:10:26 +0000 (11:40 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Mon, 29 Aug 2016 06:10:26 +0000 (11:40 +0530)
Change-Id: Icce164801a2ff5bebc9ec0c8505c50145e036d1d
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
src/common/mp-play.c

index 09047d45e11d8e78d05b7b268ef8dda59792e082..056781cd57ae133ffb9cff75bf5e27b4de5dd7ab 100755 (executable)
@@ -576,17 +576,22 @@ mp_play_start(void *data)
 
                notification_delete_all(NOTIFICATION_TYPE_NOTI);
                ad->noti = notification_create(noti_type);
+               const char *tag = "minicontrol_music";
+               ret = notification_set_tag(ad->noti, tag);
+               if (ret != NOTIFICATION_ERROR_NONE) {
+                       DEBUG_TRACE("Unable to set tag [%d]", ret);
+               }
                ret = notification_set_property(ad->noti, NOTIFICATION_PROP_VOLATILE_DISPLAY);
                if (ret != NOTIFICATION_ERROR_NONE) {
-                       DEBUG_TRACE("Cannot set the notification property");
+                       DEBUG_TRACE("Cannot set the notification property [%d]", ret);
                }
                ret = notification_set_image(ad->noti, img_type, icon_path);
                if (ret != NOTIFICATION_ERROR_NONE) {
-                       DEBUG_TRACE("Cannot set the notification image");
+                       DEBUG_TRACE("Cannot set the notification image [%d]", ret);
                }
                ret = notification_set_display_applist(ad->noti, applist);
                if (ret != NOTIFICATION_ERROR_NONE) {
-                       DEBUG_TRACE("Cannot set the display applist");
+                       DEBUG_TRACE("Cannot set the display applist [%d]", ret);
                        notification_free(ad->noti);
                }
                notification_post(ad->noti);