Merge "Correctly initialize the authentication view" into ub-mail-algol

This commit is contained in:
Martin Hibdon 2014-04-10 23:09:45 +00:00 committed by Android (Google) Code Review
commit 2172ac410a
2 changed files with 2 additions and 1 deletions

View File

@ -605,7 +605,6 @@ public class AccountSetupIncomingFragment extends AccountServerBaseFragment
@Override
public void onCertificateRequested() {
// XXX reimplement
final Intent intent = new Intent(CertificateRequestor.ACTION_REQUEST_CERT);
intent.setData(Uri.parse("eas://com.android.emailcommon/certrequest"));
startActivityForResult(intent, CERTIFICATE_REQUEST);

View File

@ -281,6 +281,8 @@ public class AccountSetupOutgoingFragment extends AccountServerBaseFragment
*/
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
final HostAuth sendAuth = mSetupData.getAccount().getOrCreateHostAuthSend(mAppContext);
mAuthenticationView.setAuthInfo(true, sendAuth);
final int visibility = isChecked ? View.VISIBLE : View.GONE;
UiUtilities.setVisibilitySafe(getView(), R.id.account_require_login_settings, visibility);
UiUtilities.setVisibilitySafe(getView(), R.id.account_require_login_settings_2, visibility);