From ecd23cf0f29c10c11c6af5022de81be7757b6017 Mon Sep 17 00:00:00 2001 From: Tony Mantler Date: Mon, 31 Mar 2014 16:43:14 -0700 Subject: [PATCH] Check amProtocol for empty before assuming the user picked a different protocol b/13734367 Change-Id: I36514cedc31f9a02c627e921b37fdb500d0ab74c --- src/com/android/email/activity/setup/AccountSetupFinal.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/android/email/activity/setup/AccountSetupFinal.java b/src/com/android/email/activity/setup/AccountSetupFinal.java index 1ca9cb716..ef6488cce 100644 --- a/src/com/android/email/activity/setup/AccountSetupFinal.java +++ b/src/com/android/email/activity/setup/AccountSetupFinal.java @@ -543,8 +543,9 @@ public class AccountSetupFinal extends AccountSetupActivity } else { mSkipAutoDiscover = false; if (mIsPreConfiguredProvider) { - if (!TextUtils.equals(mSetupData.getAmProtocol(), - mSetupData.getIncomingProtocol(this))) { + if (!TextUtils.isEmpty(mSetupData.getAmProtocol()) && + !TextUtils.equals(mSetupData.getAmProtocol(), + mSetupData.getIncomingProtocol(this))) { mState = STATE_AB; } else { mState = STATE_CREDENTIALS;