From c196e05ee15ba72ed993bf498897c2be121ccad1 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Tue, 15 Nov 2011 16:05:31 -0800 Subject: [PATCH] Fix ICS setup regression Bug: 5612276 Change-Id: Ic9ab3cb075be7ff4e0e5138a453a71cfcbe655b5 --- .../email/activity/setup/AccountCheckSettingsFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/email/activity/setup/AccountCheckSettingsFragment.java b/src/com/android/email/activity/setup/AccountCheckSettingsFragment.java index ace59c3fb..ada4e6165 100644 --- a/src/com/android/email/activity/setup/AccountCheckSettingsFragment.java +++ b/src/com/android/email/activity/setup/AccountCheckSettingsFragment.java @@ -441,7 +441,7 @@ public class AccountCheckSettingsFragment extends Fragment { } int errorCode = result.getInt(EmailServiceProxy.AUTO_DISCOVER_BUNDLE_ERROR_CODE); - if (errorCode == MessagingException.AUTHENTICATION_FAILED) { + if (errorCode == MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED) { return new AutoDiscoverResults(true, null); } else if (errorCode != MessagingException.NO_ERROR) { return new AutoDiscoverResults(false, null); @@ -609,6 +609,7 @@ public class AccountCheckSettingsFragment extends Fragment { : R.string.account_setup_failed_dlg_certificate_message_fmt; break; case MessagingException.AUTHENTICATION_FAILED: + case MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED: id = TextUtils.isEmpty(message) ? R.string.account_setup_failed_dlg_auth_message : R.string.account_setup_failed_dlg_auth_message_fmt;