elm_exit();
}
-static void save_vconf(int value, heremaps_uc_app_data *ad)
+static void save_vconf(int value)
{
int enabled = 0;
int ret = 0;
}
}
+#ifndef TIZEN_WEARABLE
static void disagree_btn_cb(void *data, Evas_Object * obj, void *event)
{
LS_FUNC_ENTER
- heremaps_uc_app_data *ad = (heremaps_uc_app_data *) data;
- save_vconf(0, ad);
+ save_vconf(0);
elm_exit();
}
+#endif
static void agree_btn_cb(void *data, Evas_Object * obj, void *event)
{
LS_FUNC_ENTER
- heremaps_uc_app_data *ad = (heremaps_uc_app_data *) data;
- save_vconf(1, ad);
+ save_vconf(1);
elm_exit();
}
static void back_btn_cb(void *data, Evas_Object * obj, void *event)
{
LS_FUNC_ENTER
- heremaps_uc_app_data *ad = (heremaps_uc_app_data *) data;
- save_vconf(0, ad);
+ save_vconf(0);
elm_exit();
}
{
LS_FUNC_ENTER
Evas_Object *popup;
- Evas_Object *disagree_btn, *agree_btn;
+ Evas_Object *agree_btn;
/* popup */
popup = elm_popup_add(layout);
eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, back_btn_cb, ad);
Evas_Object *popupLayout = elm_layout_add(popup);
- elm_layout_theme_set(popupLayout, "layout", "popup", "content/circle/buttons2");
+ elm_layout_theme_set(popupLayout, "layout", "popup", "content/circle/buttons1");
evas_object_size_hint_align_set(popupLayout, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(popupLayout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_object_part_text_set(popupLayout, "elm.text.title", P_("IDS_POSITIONING_CONSENT_TITLE"));
snprintf(buf, 4096, str1, str2, str3);
char *text = strdup(buf);
- Evas_Object *entry1 = elm_entry_add(box);
- evas_object_size_hint_weight_set(entry1, EVAS_HINT_EXPAND, 0.0);
- evas_object_size_hint_align_set(entry1, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_entry_editable_set(entry1, EINA_FALSE);
- elm_entry_line_wrap_set(entry1, ELM_WRAP_CHAR);
- elm_object_part_text_set(entry1, "elm.text", text);
- elm_box_pack_end(box, entry1);
- evas_object_show(entry1);
-
- /* Disagree button */
- disagree_btn = elm_button_add(popup);
- elm_object_style_set(disagree_btn, "popup/circle/left");
- evas_object_size_hint_weight_set(disagree_btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_smart_callback_add(disagree_btn, "clicked", disagree_btn_cb, ad);
- elm_object_part_content_set(popup, "button1", disagree_btn);
-
- Evas_Object *icon = elm_image_add(disagree_btn);
- elm_image_file_set(icon, EDJE_PATH, "tw_ic_popup_btn_delete.png");
- evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_object_part_content_set(disagree_btn, "elm.swallow.content", icon);
- evas_object_show(icon);
+ Evas_Object* entry = elm_entry_add(box);
+ evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, 0.0);
+ evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_entry_editable_set(entry, EINA_FALSE);
+ elm_object_part_text_set(entry, "elm.text", text);
+ elm_entry_text_style_user_push(entry, "DEFAULT='align=center'");
+ elm_box_pack_end(box, entry);
+ evas_object_show(entry);
/* Agree button */
agree_btn = elm_button_add(popup);
- elm_object_style_set(agree_btn, "popup/circle/right");
+ elm_object_style_set(agree_btn, "popup/circle");
evas_object_size_hint_weight_set(agree_btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-
- icon = elm_image_add(agree_btn);
- elm_image_file_set(icon, EDJE_PATH, "tw_ic_popup_btn_check.png");
- evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_object_part_content_set(agree_btn, "elm.swallow.content", icon);
- evas_object_show(icon);
+ elm_object_part_text_set(agree_btn, "elm.text", P_("IDS_ST_BUTTON_AGREE"));
evas_object_smart_callback_add(agree_btn, "clicked", agree_btn_cb, ad);
- elm_object_part_content_set(popup, "button2", agree_btn);
+ elm_object_part_content_set(popup, "button1", agree_btn);
evas_object_show(popup);
LS_FUNC_EXIT
static void _app_pause_cb(void *user_data)
{
LS_FUNC_ENTER
+ //minseo.park:Sep 20, 2016:HERE UC launcher is hidden type app. So never be managed by applicaiton manager.
+ // So when paused by other event, should exit. And have to set vconfkey for notifing to caller application.
+ int enabled = 0;
+ vconf_get_int(VCONFKEY_LOCATION_HEREMAPS_CONSENT, &enabled);
+
+ save_vconf(enabled);
+ elm_exit();
}
static void _app_resume_cb(void *user_data)
bindtextdomain(HEREMAPS_UC_PKG, LOCALE_DIR);
- save_vconf(-1, ad);
+ save_vconf(-1);
ad->win_main = create_win(HEREMAPS_UC_PKG);
ad->conformant = create_conformant(ad->win_main);