{
char int_amount_buf[256] = {0};
char unit_buf[256] = {0};
- get_data_int_amount_str(value, int_amount_buf, sizeof(int_amount_buf));
- elm_object_text_set(entry, int_amount_buf);
+ if (value > 0) {
+ get_data_int_amount_str(value, int_amount_buf, sizeof(int_amount_buf));
+ elm_object_text_set(entry, int_amount_buf);
+ elm_entry_cursor_end_set(entry);
+ }
+
+ elm_object_focus_set(entry, EINA_TRUE);
get_data_unit_str(value, unit_buf, sizeof(unit_buf));
elm_object_text_set(button, unit_buf);
}
evas_object_size_hint_weight_set(entry, 0.73, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL);
+
evas_object_show(entry);
return entry;
return datetime;
}
+static void _popup_back_cb(void *data, Evas_Object *popup, void *event_info)
+{
+ evas_object_del(popup);
+}
+
static Evas_Object *_create_popup(SmartMgrData *smd, char *title)
{
Evas_Object *popup = elm_popup_add(smd->md.window);
retv_if(!popup, NULL);
elm_object_part_text_set(popup, "title,text", title);
elm_popup_align_set(popup, 0.5, 0.5);
-
+ eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, _popup_back_cb,
+ NULL);
return popup;
}
unset_mobile_limit_restrictions(smd->stc,
_get_and_unset_limit_restrictions_cb, smd);
smd->selected_sim_limits->limit = 0;
+ smd->selected_sim_limits->warning = 0;
evas_object_del(popup_info.popup);
}