[Verification] Code compiles. TCT pass rate 100%
Change-Id: If4f3ea10366ad2982bb3f8faa3c01e04563d5e47
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
GetImage(noti_handle, NOTIFICATION_IMAGE_TYPE_LIST_5, &progress_type);
if (status.IsError())
return status;
+
+ //push service daemon doesn't set progress type
+ //so use default if notification type is different from "PROGRESS"
+ if ("PROGRESS" != noti_type_str) {
+ progress_type = progress_type == kProgressTypeByte ? progress_type : kProgressTypePercentage;
+ }
out["progressType"] = picojson::value(progress_type);
double progress_value;