Use correct password dialog for outgoing settings

We actually want to divert based on incoming protocol, not outgoing

b/17460124

Change-Id: Ic7129d23d36f9f15e2ecbb25d3f11dae12bb56ac
This commit is contained in:
Tony Mantler 2014-09-11 13:22:02 -07:00
parent f866891f92
commit b38d0bbf8d
1 changed files with 3 additions and 1 deletions

View File

@ -410,8 +410,10 @@ public class AccountSetupOutgoingFragment extends AccountServerBaseFragment
@Override
public void onRequestSignIn() {
// Launch the credential activity.
// Use HostAuthRecv here because we want to know if this is account is IMAP (offer OAuth) or
// if it's POP (password only)
final String protocol =
mSetupData.getAccount().getOrCreateHostAuthSend(mAppContext).mProtocol;
mSetupData.getAccount().getOrCreateHostAuthRecv(mAppContext).mProtocol;
final Intent intent = AccountCredentials.getAccountCredentialsIntent(getActivity(),
mUsernameView.getText().toString(), protocol);
startActivityForResult(intent, SIGN_IN_REQUEST);