Save IMAP prefix.

Bug: 4517078
Change-Id: I4f4a1e490abc78088ec8ded4e4627e5da1ac3fd2
This commit is contained in:
Ben Komalo 2011-08-01 10:35:25 -07:00
parent b83ecdbb9f
commit 5125c06cef

View File

@ -20,6 +20,7 @@ import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.text.method.DigitsKeyListener;
import android.util.Log;
@ -450,7 +451,12 @@ public class AccountSetupIncomingFragment extends AccountServerBaseFragment {
}
int securityType = (Integer) ((SpinnerOption) mSecurityTypeView.getSelectedItem()).value;
recvAuth.setConnection(mBaseScheme, serverAddress, serverPort, securityType);
recvAuth.mDomain = null;
if (HostAuth.SCHEME_IMAP.equals(recvAuth.mProtocol)) {
String prefix = mImapPathPrefixView.getText().toString().trim();
recvAuth.mDomain = TextUtils.isEmpty(prefix) ? null : ("/" + prefix);
} else {
recvAuth.mDomain = null;
}
// Check for a duplicate account (requires async DB work) and if OK,
// proceed with check