Merge "[Wi-Fi] Can't change EAP method for a saved enterprise Wi-Fi network"
This commit is contained in:
committed by
Android (Google) Code Review
commit
9ea11ac24d
@@ -1009,7 +1009,10 @@ public class WifiConfigController implements TextWatcher,
|
||||
}
|
||||
mView.findViewById(R.id.eap).setVisibility(View.VISIBLE);
|
||||
|
||||
// TODO (b/140541213): Maybe we can remove initiateEnterpriseNetworkUi by moving code block
|
||||
boolean initiateEnterpriseNetworkUi = false;
|
||||
if (mEapMethodSpinner == null) {
|
||||
initiateEnterpriseNetworkUi = true;
|
||||
mEapMethodSpinner = (Spinner) mView.findViewById(R.id.method);
|
||||
mEapMethodSpinner.setOnItemSelectedListener(this);
|
||||
mPhase2Spinner = (Spinner) mView.findViewById(R.id.phase2);
|
||||
@@ -1066,7 +1069,7 @@ public class WifiConfigController implements TextWatcher,
|
||||
}
|
||||
|
||||
// Modifying an existing network
|
||||
if (mAccessPoint != null && mAccessPoint.isSaved()) {
|
||||
if (initiateEnterpriseNetworkUi && mAccessPoint != null && mAccessPoint.isSaved()) {
|
||||
WifiEnterpriseConfig enterpriseConfig = mAccessPoint.getConfig().enterpriseConfig;
|
||||
int eapMethod = enterpriseConfig.getEapMethod();
|
||||
int phase2Method = enterpriseConfig.getPhase2Method();
|
||||
|
Reference in New Issue
Block a user