am bcadbc5f
: Merge "Fix ICS setup regression" into ics-mr1
* commit 'bcadbc5fce10278f1a557a876ebf0eb60afdf051': Fix ICS setup regression
This commit is contained in:
commit
db3dc58fce
@ -441,7 +441,7 @@ public class AccountCheckSettingsFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
int errorCode =
|
int errorCode =
|
||||||
result.getInt(EmailServiceProxy.AUTO_DISCOVER_BUNDLE_ERROR_CODE);
|
result.getInt(EmailServiceProxy.AUTO_DISCOVER_BUNDLE_ERROR_CODE);
|
||||||
if (errorCode == MessagingException.AUTHENTICATION_FAILED) {
|
if (errorCode == MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED) {
|
||||||
return new AutoDiscoverResults(true, null);
|
return new AutoDiscoverResults(true, null);
|
||||||
} else if (errorCode != MessagingException.NO_ERROR) {
|
} else if (errorCode != MessagingException.NO_ERROR) {
|
||||||
return new AutoDiscoverResults(false, null);
|
return new AutoDiscoverResults(false, null);
|
||||||
@ -611,6 +611,7 @@ public class AccountCheckSettingsFragment extends Fragment {
|
|||||||
: R.string.account_setup_failed_dlg_certificate_message_fmt;
|
: R.string.account_setup_failed_dlg_certificate_message_fmt;
|
||||||
break;
|
break;
|
||||||
case MessagingException.AUTHENTICATION_FAILED:
|
case MessagingException.AUTHENTICATION_FAILED:
|
||||||
|
case MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED:
|
||||||
id = TextUtils.isEmpty(message)
|
id = TextUtils.isEmpty(message)
|
||||||
? R.string.account_setup_failed_dlg_auth_message
|
? R.string.account_setup_failed_dlg_auth_message
|
||||||
: R.string.account_setup_failed_dlg_auth_message_fmt;
|
: R.string.account_setup_failed_dlg_auth_message_fmt;
|
||||||
|
Loading…
Reference in New Issue
Block a user