fix file:// prefix issue in attach file path
[apps/core/preloaded/email.git] / setting / src / email-view-account-setup.c
index eb9bd07..a2d2be2 100755 (executable)
@@ -1049,41 +1049,18 @@ static void _back_cb(void *data, Evas_Object *obj, void *event_info)
        debug_log("");
 
        struct viewdata *vd = (struct viewdata *)data;
-       struct priv_data *p = vd->priv;
 
        if (vd->ugd->atomic_pop) {
                debug_log("During atomic poping");
                return;
        }
 
-       if (p->entry_account_name) {
-               elm_object_focus_allow_set(p->entry_account_name, EINA_FALSE);
-       }
-
-       if (p->entry_email_address) {
-               elm_object_focus_allow_set(p->entry_email_address, EINA_FALSE);
-       }
-
-       if (p->entry_password) {
-               elm_object_focus_allow_set(p->entry_password, EINA_FALSE);
-       }
-
-       Ecore_IMF_Context *imf_context = NULL;
-       imf_context = elm_entry_imf_context_get(p->clicked_object);
-       if (imf_context) {
-               ecore_imf_context_input_panel_hide(imf_context);
-               ecore_imf_context_input_panel_event_callback_del(imf_context,
-                               ECORE_IMF_INPUT_PANEL_STATE_EVENT, _input_panel_state_changed_cb);
-       }
-
-       elm_object_disabled_set(p->l_button, EINA_TRUE);
-       elm_object_disabled_set(p->r_button, EINA_TRUE);
-       elm_object_disabled_set(p->r_button2, EINA_TRUE);
-       elm_object_disabled_set(p->manual_btn, EINA_TRUE);
-       elm_object_disabled_set(p->tool_btn, EINA_TRUE);
-
        if (!strcmp(vd->ugd->start_view_type, "account-add")) {
                ug_destroy_me(vd->ugd->ug);
+       } else if (!strcmp(vd->ugd->start_view_type, EMAIL_BUNDLE_VAL_VIEW_FIRST_SETUP)) {
+               elm_win_lower(vd->ugd->win);
+    } else if (!strcmp(vd->ugd->start_view_type, EMAIL_BUNDLE_VAL_VIEW_SELECT_ACCOUNT)) {
+               ug_destroy_me(vd->ugd->ug);
        } else {
                setting_back_to_prev_view(vd);
        }