evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_scroller_policy_set( genlist, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
+ elm_scroller_policy_set(genlist, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
evas_object_show(genlist);
- elm_object_tree_focus_allow_set(genlist, EINA_FALSE);
return genlist;
}
__isHideCheck = !showCheck;
Elm_Object_Item *it = __getFirstItem();
Elm_Object_Item *next = it;
- while(next) {
+ while (next) {
Item *item = (Item *)elm_object_item_data_get(next);
- if (item->isGroupTitle()) {
- item->setCheckable(showCheck);
- elm_genlist_item_fields_update(next, "elm.swallow.content", ELM_GENLIST_ITEM_FIELD_CONTENT);
+ if (item && item->isGroupTitle()) {
+ item->setCheckable(showCheck);
+ elm_genlist_item_fields_update(next, "elm.swallow.content", ELM_GENLIST_ITEM_FIELD_CONTENT);
}
next = elm_genlist_item_next_get(next);
}
app_control_set_launch_mode(service, APP_CONTROL_LAUNCH_MODE_GROUP);
CalAppControlLauncher::getInstance().sendLaunchRequest(service,
- [](app_control_h request, app_control_h reply, app_control_result_e result, void* data) {
+ [](app_control_h request, app_control_h reply, app_control_result_e result, void *data) {
CalSettingsView *self = (CalSettingsView *)data;
- char *ringtone = NULL;
- int error = 0;
- error = app_control_get_extra_data(reply, APP_CONTROL_SETTING_RINGTONE_KEY_RESULT, &ringtone);
+ char **ringtone = nullptr;
+ int count = 0;
+ int error = app_control_get_extra_data_array(reply, APP_CONTROL_DATA_SELECTED, &ringtone, &count);
+
if (error != APP_CONTROL_ERROR_NONE) {
WERROR("get extra data by key result is failed(%x)", error);
return;
}
free(ringtone);
- ringtone = NULL;
- elm_genlist_item_update((Elm_Object_Item*)self->__noti_sound_item->getElmObjectItem());
+ elm_genlist_item_update((Elm_Object_Item *)self->__noti_sound_item->getElmObjectItem());
},
this,
getEvasObj()