diff --git a/src/com/android/email/activity/setup/AccountSetupIncoming.java b/src/com/android/email/activity/setup/AccountSetupIncoming.java index 9e8970eac..94a1872e6 100644 --- a/src/com/android/email/activity/setup/AccountSetupIncoming.java +++ b/src/com/android/email/activity/setup/AccountSetupIncoming.java @@ -230,6 +230,11 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener findViewById(R.id.webdav_path_prefix_section).setVisibility(View.GONE); findViewById(R.id.webdav_path_debug_section).setVisibility(View.GONE); mAccount.setDeletePolicy(Account.DELETE_POLICY_ON_DELETE); + + if (! Intent.ACTION_EDIT.equals(getIntent().getAction())) { + findViewById(R.id.imap_folder_setup_section).setVisibility(View.GONE); + } + } else if (uri.getScheme().startsWith("webdav")) { serverLabelView.setText(R.string.account_setup_incoming_webdav_server_label); mAccountPorts = webdavPorts;