Fix broken account creation
* What the heck is mCacheLoginCredential for?? Bug: 4597765 Change-Id: Idcb6d323ba0e90f3fe6828f59fe36ec54e4cf40c
This commit is contained in:
parent
c3e6507293
commit
69111b1e19
@ -16,16 +16,6 @@
|
||||
|
||||
package com.android.email.activity.setup;
|
||||
|
||||
import com.android.email.Email;
|
||||
import com.android.email.R;
|
||||
import com.android.email.activity.UiUtilities;
|
||||
import com.android.email.mail.Store;
|
||||
import com.android.email.provider.AccountBackupRestore;
|
||||
import com.android.emailcommon.Logging;
|
||||
import com.android.emailcommon.provider.EmailContent.Account;
|
||||
import com.android.emailcommon.provider.HostAuth;
|
||||
import com.android.emailcommon.utility.Utility;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
@ -42,6 +32,16 @@ import android.widget.EditText;
|
||||
import android.widget.Spinner;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.android.email.Email;
|
||||
import com.android.email.R;
|
||||
import com.android.email.activity.UiUtilities;
|
||||
import com.android.email.mail.Store;
|
||||
import com.android.email.provider.AccountBackupRestore;
|
||||
import com.android.emailcommon.Logging;
|
||||
import com.android.emailcommon.provider.EmailContent.Account;
|
||||
import com.android.emailcommon.provider.HostAuth;
|
||||
import com.android.emailcommon.utility.Utility;
|
||||
|
||||
/**
|
||||
* Provides UI for IMAP/POP account settings.
|
||||
*
|
||||
@ -364,6 +364,9 @@ public class AccountSetupIncomingFragment extends AccountServerBaseFragment {
|
||||
&& Utility.isPortFieldValid(mPortView);
|
||||
enableNextButton(enabled);
|
||||
|
||||
String userName = mUsernameView.getText().toString().trim();
|
||||
mCacheLoginCredential = userName;
|
||||
|
||||
// Warn (but don't prevent) if password has leading/trailing spaces
|
||||
AccountSettingsUtils.checkPasswordSpaces(mContext, mPasswordView);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user