#endif
debug_log("Start Account Validation");
- module->popup = setting_get_pb_process_notify(view,
- &(EMAIL_SETTING_STRING_VALIDATING_ACCOUNT_ING), 0, NULL, NULL, NULL, NULL,
- POPUP_BACK_TYPE_DESTROY_WITH_CANCEL_OP, handle);
+ if (!module->popup)
+ module->popup = setting_get_pb_process_notify(view,
+ &(EMAIL_SETTING_STRING_VALIDATING_ACCOUNT_ING), 0, NULL, NULL, NULL, NULL,
+ POPUP_BACK_TYPE_DESTROY_WITH_CANCEL_OP, handle);
}
Evas_Object *setting_gl_item_get_editfield_entry(Elm_Object_Item *item)
EmailSettingView *view = (EmailSettingView *)self;
EmailSettingModule *module = (EmailSettingModule *)view->base.module;
- if (prev_state != EV_STATE_CREATED) {
- return;
+ if (prev_state == EV_STATE_CREATED) {
+ setting_load_provider_list(&(module->default_provider_list), NULL, EMAIL_SETTING_DEFAULT_PROVIDER_XML_FILENAME);
}
- setting_load_provider_list(&(module->default_provider_list), NULL, EMAIL_SETTING_DEFAULT_PROVIDER_XML_FILENAME);
-
Evas_Object *email_address_entry = setting_gl_item_get_editfield_entry(view->item_email_address);
if (email_address_entry) {
elm_object_focus_set(email_address_entry, EINA_TRUE);
debug_log("Validate account");
setting_create_account_validation_popup(&view->base, &(view->handle));
} else {
+ DELETE_EVAS_OBJECT(module->popup);
if (error_code == EMAIL_ERROR_ALREADY_EXISTS) {
module->popup = setting_get_notify(&view->base,
&(EMAIL_SETTING_STRING_WARNING),
EmailSettingView *view = data;
EmailSettingModule *module = (EmailSettingModule *)view->base.module;
+ elm_object_focus_set(view->next_btn, EINA_TRUE);
+
DELETE_TIMER_OBJECT(view->preset_vc_timer);
DELETE_EVAS_OBJECT(module->popup);
/* initialize handle */
view->handle = EMAIL_OP_HANDLE_INITIALIZER;
- DELETE_EVAS_OBJECT(module->popup);
if (response->err == EMAIL_ERROR_NONE || response->err == EMAIL_ERROR_VALIDATE_ACCOUNT_OF_SMTP) {
view->is_retry_validate_with_username = 0;
DELETE_TIMER_OBJECT(view->preset_vc_timer);
_update_account_smtp_mail_limit_size(view, (const char *)(response->data));
view->preset_vc_timer = ecore_timer_add(0.5, _after_validation_cb, view);
} else if (response->err == EMAIL_ERROR_DPM_RESTRICTED_MODE) {
- common_util_show_dpm_error_popup("IDS_EMAIL_OPT_ADD_ACCOUNT");
+ DELETE_EVAS_OBJECT(module->popup);
+ common_util_show_dpm_error_popup("IDS_EMAIL_OPT_ADD_ACCOUNT");
} else if (!(view->is_retry_validate_with_username) && (response->err != EMAIL_ERROR_CANCELLED)) {
view->is_retry_validate_with_username = 1;
_set_username_before_at(view);
_validate_account(view);
} else {
+ DELETE_EVAS_OBJECT(module->popup);
view->is_retry_validate_with_username = 0;
if (response->err != EMAIL_ERROR_CANCELLED) {
const email_string_t *type = setting_get_service_fail_type(response->err);
debug_log("Validate account");
setting_create_account_validation_popup(&view->base, &(view->handle));
} else {
+ DELETE_EVAS_OBJECT(module->popup);
if (error_code == EMAIL_ERROR_ALREADY_EXISTS) {
module->popup = setting_get_notify(&view->base,
&(EMAIL_SETTING_STRING_WARNING),
EmailSettingModule *module = (EmailSettingModule *)view->base.module;
+ elm_object_focus_set(view->next_btn, EINA_TRUE);
+
DELETE_TIMER_OBJECT(view->other_vc_timer);
DELETE_EVAS_OBJECT(module->popup);
/* initialize handle */
view->handle = EMAIL_OP_HANDLE_INITIALIZER;
- DELETE_EVAS_OBJECT(module->popup);
if (response->err == EMAIL_ERROR_NONE ||
response->err == EMAIL_ERROR_VALIDATE_ACCOUNT_OF_SMTP) {
view->is_retry_validate_with_username = 0;
_update_account_smtp_mail_limit_size(view, (const char *)(response->data));
view->other_vc_timer = ecore_timer_add(0.5, _after_validation_cb, view);
} else if (response->err == EMAIL_ERROR_DPM_RESTRICTED_MODE) {
+ DELETE_EVAS_OBJECT(module->popup);
common_util_show_dpm_error_popup("IDS_EMAIL_OPT_ADD_ACCOUNT");
} else if ((view->is_retry_validate_with_username <= 2) &&
(response->err != EMAIL_ERROR_CANCELLED)) {
_set_username_with_email_address(view);
_validate_account(view);
} else {
+ DELETE_EVAS_OBJECT(module->popup);
view->is_retry_validate_with_username = 0;
if (response->err != EMAIL_ERROR_CANCELLED) {
const email_string_t *err_msg = setting_get_service_fail_type(response->err);