return WATCHFACE_COMPLICATION_ERROR_OUT_OF_MEMORY;
}
+
+ bundle_add(ed, "SETUP_APPID", i.get()->GetSetupAppId().c_str());
bundle_add(ed, "EDITABLE_ID", std::to_string(i.get()->GetEditableId()).c_str());
int cur_data_idx = i.get()->GetCurDataIdx();
bundle_get_str(data, "CUR_DATA_IDX", &cur_data_idx_str);
cur_data_idx_ = atoi(cur_data_idx_str);
+ char* setup_appid = NULL;
+ bundle_get_str(data, "SETUP_APPID", &setup_appid);
+ setup_appid_ = std::string(setup_appid);
+
char* editable_id_str = NULL;
bundle_get_str(data, "EDITABLE_ID", &editable_id_str);
id_ = atoi(editable_id_str);
}
const std::string ReceivedEditable::GetSetupAppId() {
- // TODO(?): from db
- return "org.tizen.comp_setting";
+ return impl_->setup_appid_;
}
int ReceivedEditable::SetContext(std::unique_ptr<Bundle> context) {