Fix sample codes for notification_set/get_led 01/72801/1 accepted/tizen/common/20160606.141709 accepted/tizen/ivi/20160606.040552 accepted/tizen/mobile/20160606.035152 accepted/tizen/tv/20160606.035853 accepted/tizen/wearable/20160606.040056 submit/tizen/20160603.030057
authorMyungki Lee <mk5004.lee@samsung.com>
Thu, 2 Jun 2016 11:25:03 +0000 (20:25 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Thu, 2 Jun 2016 11:25:03 +0000 (20:25 +0900)
Change-Id: I0a7b72076c71283bc2aa0cf1c91e491119db0291
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
include/notification.h

index fd29c85..008d356 100755 (executable)
@@ -437,7 +437,7 @@ int notification_get_vibration(notification_h noti,
        notification_h noti = NULL;
        int noti_err = NOTIFICATION_ERROR_NONE;
 
-       noti_err  = notification_set_led(noti, NOTIFICATION_LED_TYPE_DEFAULT, NULL);
+       noti_err  = notification_set_led(noti, NOTIFICATION_LED_OP_ON, NULL);
        if(noti_err != NOTIFICATION_ERROR_NONE) {
                return;
        }
@@ -464,7 +464,7 @@ int notification_set_led(notification_h noti, notification_led_op_e operation,
  {
        notification_h noti = NULL;
        int noti_err = NOTIFICATION_ERROR_NONE;
-       notification_led_type_e type = NOTIFICATION_LED_TYPE_NONE;
+       notification_led_type_e type = NOTIFICATION_LED_OP_OFF;
 
        noti_err  = notification_get_led(noti, &type, NULL);
        if(noti_err != NOTIFICATION_ERROR_NONE) {