else if(data_list->item_style == ITEM_STYLE_RADIO)
{
int count = data_list->index;
- Elm_Object_Item *it = elm_genlist_nth_item_get(obj, count);
Evas_Object *radio = NULL;
Evas_Object *radio_main = evas_object_data_get(obj, "radio");
radio = elm_radio_add(obj);
elm_radio_group_add(radio, radio_main);
- elm_radio_state_value_set(radio, count + 1);
+ elm_radio_state_value_set(radio, count);
evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND,EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(radio, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_propagate_events_set(radio, EINA_FALSE);
- elm_atspi_accessible_relationship_append(it, ELM_ATSPI_RELATION_DESCRIBED_BY, radio);
- elm_atspi_accessible_relationship_append(radio, ELM_ATSPI_RELATION_CONTROLLED_BY, it);
return radio;
}
}
elm_genlist_item_selected_set(it, EINA_FALSE);
radio = elm_object_item_part_content_get(it, "elm.swallow.end");
- elm_radio_value_set(radio, index + 1);
+ elm_radio_value_set(radio, index);
switch (index)
{
int count = 0;
Evas_Object *radio = elm_radio_add(genlist);
- elm_radio_state_value_set(radio, 0);
- elm_radio_value_set(radio, 0);
evas_object_data_set(genlist, "radio", radio);
itc->item_style = style;
++count;
}
elm_genlist_item_class_free(itc);
+
+ int index = get_lock_screen_content_setting();
+ elm_radio_value_set(radio, index);
+ gl_radio_sel_cb((void *)index, genlist, NULL);
}
void append_gl_item_list(Evas_Object *genlist, Eina_List* list, int style, char *ugName)
void done_button_noti_ls_cb(void *data, Evas_Object *obj, void *event_info)
{
NOTISET_TRACE_BEGIN;
- // TODO: add implementation when platform API will be available
+ update_lock_screen_noti_settings();
+ ret_if(!data);
+ ug_data *u_data = (ug_data *)data;
+ elm_naviframe_item_pop(u_data->naviframe);
+
+ EVAS_OBJECT_DELIF(u_data->done_button);
+ EVAS_OBJECT_DELIF(u_data->cancel_button);
+ EVAS_OBJECT_DELIF(u_data->list_sub);
+ EVAS_OBJECT_DELIF(u_data->list_main);
}
void back_button_cb(void *data, Evas_Object *obj, void *event_info)
*/
#include "common-efl.h"
+#include "notification-setting-info.h"
+
+lock_screen_content_level_e g_lock_screen_content_level = SHOW_ALL_CONTENT;
void show_all_content_clicked()
{
if(genlist_item)
elm_genlist_clear(ugd->list_sub);
-
+ g_lock_screen_content_level = SHOW_ALL_CONTENT;
append_gl_start_option(ugd->list_sub, "type1", "show-all-content");
}
if(genlist_item)
elm_genlist_clear(ugd->list_sub);
-
+ g_lock_screen_content_level = HIDE_SENSITIVE_CONTENT;
append_gl_start_option(ugd->list_sub, "type1", "hide-sensitive-content");
}
ug_data *ugd = get_app_ui_data();
elm_genlist_clear(ugd->list_sub);
+ g_lock_screen_content_level = DO_NOT_SHOW_NOTIFICATIONS;
+}
+
+void update_lock_screen_noti_settings()
+{
+ set_lock_screen_content_setting(g_lock_screen_content_level);
+ update_system_settings();
}