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,
+ is_update);
+
+ if (status.IsError()) {
+ return status;
}
status = SetText(noti_handle,