Setup port from services.xml when autoconfiguring

Change-Id: Iec2d3fddb345b57ba84a794d9e92cad7a631c105
This commit is contained in:
Marc Blank 2012-06-21 09:50:30 -07:00
parent cb9035a87d
commit 556af6cfcb

View File

@ -454,6 +454,9 @@ public class AccountSetupBasics extends AccountSetupActivity
HostAuth recvAuth = account.getOrCreateHostAuthRecv(this);
HostAuth.setHostAuthFromString(recvAuth, mProvider.incomingUri);
recvAuth.setLogin(mProvider.incomingUsername, password);
EmailServiceInfo info = EmailServiceUtils.getServiceInfo(this, recvAuth.mProtocol);
recvAuth.mPort =
((recvAuth.mFlags & HostAuth.FLAG_SSL) != 0) ? info.portSsl : info.port;
HostAuth sendAuth = account.getOrCreateHostAuthSend(this);
HostAuth.setHostAuthFromString(sendAuth, mProvider.outgoingUri);