return status;
}
+ double progressValue;
if (val.contains("progressValue") && !IsNull(noti_obj, "progressValue")) {
- double progressValue = common::FromJson<double>(noti_obj, "progressValue");
- status = SetProgressValue(*noti_handle, progress_type, progressValue,
- is_update);
+ progressValue = common::FromJson<double>(noti_obj, "progressValue");
+ }
+ else {
+ progressValue = -1;
+ }
- if (status.IsError()) {
- return status;
- }
- status = SetProgressValue(noti_handle, progress_type, progressValue,
++ status = SetProgressValue(*noti_handle, progress_type, progressValue,
+ is_update);
+
+ if (status.IsError()) {
+ return status;
}
- status = SetText(noti_handle,
+ status = SetText(*noti_handle,
NOTIFICATION_TEXT_TYPE_TITLE,
common::FromJson<std::string>(noti_obj, "title"));
if (status.IsError()) {