xmlTextWriterWriteAttribute(writer, BAD_CAST "main",
BAD_CAST (appwidget->primary ? "true" : "false")); // NOLINT
- xmlTextWriterWriteAttribute(writer, BAD_CAST "update-period", BAD_CAST "0");
+ if (!appwidget->update_period.empty()) {
+ xmlTextWriterWriteAttribute(writer, BAD_CAST "update-period", BAD_CAST
+ std::to_string(static_cast<int>(
+ appwidget->update_period.front())).c_str());
+ }
for (auto& size : appwidget->content_size) {
xmlTextWriterStartElement(writer, BAD_CAST "support-size");
}
if (context_->pkgid.get().empty()) {
LOG(ERROR) << "pkgid attribute is empty";
- return Step::Status::PACKAGE_NOT_FOUND; }
+ return Step::Status::PACKAGE_NOT_FOUND;
+ }
if (!context_->manifest_data.get()->application) {
LOG(ERROR) << "No application in package";