Fix EAP field display for a new network

We now hide certain EAP fields based on the type chosen. For a
new network, we should set a default and handle this the same
way

Change-Id: I9c8605694ba51bc588a49f711dcf31517ea3f6e4
This commit is contained in:
Irfan Sheriff
2013-02-06 10:51:13 -08:00
committed by Irfan Sheriff
parent ce68912621
commit 0e22188088

View File

@@ -612,6 +612,11 @@ public class WifiConfigController implements TextWatcher,
setSelection(mEapUserCertSpinner, config.enterpriseConfig.getClientCertificate());
mEapIdentityView.setText(config.enterpriseConfig.getIdentity());
mEapAnonymousView.setText(config.enterpriseConfig.getAnonymousIdentity());
} else {
// Choose a default for a new network and show only appropriate
// fields
mEapMethodSpinner.setSelection(Eap.PEAP);
showEapFieldsByMethod(Eap.PEAP);
}
} else {
showEapFieldsByMethod(mEapMethodSpinner.getSelectedItemPosition());