- If week_flag is 0, alarmmgr_set_repeat_mode return invlid param err.
Change-Id: I37c44809d30609d64eedd8977a2974d5dbe463c8
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
goto out;
}
- err = alarmmgr_set_repeat_mode(alarm_info, ALARM_REPEAT_MODE_WEEKLY, week_flag);
- if (err != ALARMMGR_RESULT_SUCCESS) {
- NOTIFICATION_ERR("alarmmgr_set_repeat_mode failed (%d)", err);
- goto out;
+ if (week_flag) {
+ err = alarmmgr_set_repeat_mode(alarm_info, ALARM_REPEAT_MODE_WEEKLY, week_flag);
+ if (err != ALARMMGR_RESULT_SUCCESS) {
+ NOTIFICATION_ERR("alarmmgr_set_repeat_mode failed (%d)", err);
+ goto out;
+ }
}
err = alarmmgr_set_type(alarm_info, ALARM_TYPE_VOLATILE);