return eo;
}
+static void anchor_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+{
+ LS_FUNC_ENTER
+ Elm_Entry_Anchor_Info *ai = event_info;
+ LS_RETURN_IF_FAILED(ai);
+
+ app_control_h ac = NULL;
+ app_control_create(&ac);
+ app_control_set_operation(ac, APP_CONTROL_OPERATION_VIEW);
+ app_control_set_uri(ac, ai->name);
+ app_control_send_launch_request(ac, NULL, NULL);
+ app_control_destroy(ac);
+}
+
static Evas_Object *create_popup_wearable(Evas_Object *layout, heremaps_uc_app_data *ad)
{
LS_FUNC_ENTER
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'");
+ evas_object_smart_callback_add(entry, "anchor,clicked", anchor_clicked_cb, NULL);
elm_box_pack_end(box, entry);
evas_object_show(entry);
evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_object_part_text_set(popup, "title,text", P_("IDS_POSITIONING_CONSENT_TITLE"));
+ Evas_Object *box = elm_box_add(popup);
+ elm_box_align_set(box, 0.5, 0);
+ elm_object_part_content_set(popup, "elm.swallow.content", box);
+ evas_object_show(box);
+
char buf[4096] = {0};
char *str1 = P_("IDS_POSITIONING_CONSENT_BODY");
- char *str2 = "<color=#006fd1ff underline=on underline_color=#006fd1ff><a href=http://here.com/terms/service- terms>http://here.com/terms/service-terms</a></color>";
- char *str3 = "<color=#006fd1ff underline=on underline_color=#006fd1ff><a href=http://here.com/privacy/privac y-policy>http://here.com/privacy/privacy-policy</a></color>";
+ char *str2 = "<color=#006fd1ff underline=on underline_color=#006fd1ff><a href=http://here.com/terms/service-terms>http://here.com/terms/service-terms</a></color>";
+ char *str3 = "<color=#006fd1ff underline=on underline_color=#006fd1ff><a href=http://here.com/privacy/privacy-policy>http://here.com/privacy/privacy-policy</a></color>";
snprintf(buf, 4096, str1, str2, str3);
char *text = strdup(buf);
- elm_object_text_set(popup, text);
+
+ 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'");
+ evas_object_smart_callback_add(entry, "anchor,clicked", anchor_clicked_cb, NULL);
+ elm_box_pack_end(box, entry);
+ evas_object_show(entry);
/* Disagree button */
disagree_btn = elm_button_add(popup);
LS_RETURN_IF_FAILED(ad);
if (ad->btn_clicked == 0)
- save_vconf(0);
+ save_vconf(0);
elm_exit();
}