[Wi-Fi] Revert "support SAE password identifier in wifi dialog"
Revert it because SPEC is not clear now. Bug: 143379656 Test: manual Click "Add network" in wi-Fi picker and edit a WAP3-personal Wi-Fi network Change-Id: Ifa859d53c29d0fa83f22cc2d0e50294d0a5c7fc9
This commit is contained in:
@@ -142,7 +142,6 @@ public class WifiConfigController2 implements TextWatcher,
|
||||
@VisibleForTesting
|
||||
int mWifiEntrySecurity;
|
||||
private TextView mPasswordView;
|
||||
private TextView mSaePasswordIdView;
|
||||
private ImageButton mSsidScanButton;
|
||||
|
||||
private String mUnspecifiedCertString;
|
||||
@@ -805,11 +804,6 @@ public class WifiConfigController2 implements TextWatcher,
|
||||
String password = mPasswordView.getText().toString();
|
||||
config.preSharedKey = '"' + password + '"';
|
||||
}
|
||||
if (mSaePasswordIdView.length() != 0) {
|
||||
config.saePasswordId = mSaePasswordIdView.getText().toString();
|
||||
} else {
|
||||
config.saePasswordId = null;
|
||||
}
|
||||
break;
|
||||
|
||||
case WifiEntry.SECURITY_OWE:
|
||||
@@ -996,23 +990,6 @@ public class WifiConfigController2 implements TextWatcher,
|
||||
}
|
||||
}
|
||||
|
||||
if (mSaePasswordIdView == null) {
|
||||
mSaePasswordIdView = (TextView) mView.findViewById(R.id.sae_password_id);
|
||||
mSaePasswordIdView.setOnEditorActionListener(this);
|
||||
mSaePasswordIdView.setOnKeyListener(this);
|
||||
}
|
||||
|
||||
if (mWifiEntrySecurity == WifiEntry.SECURITY_SAE) {
|
||||
mView.findViewById(R.id.sae_password_id_layout).setVisibility(View.VISIBLE);
|
||||
if (mWifiEntry != null && mWifiEntry.isSaved()) {
|
||||
if (!TextUtils.isEmpty(mWifiEntry.getWifiConfiguration().saePasswordId)) {
|
||||
mSaePasswordIdView.setText(mWifiEntry.getWifiConfiguration().saePasswordId);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
setSaePasswordIdInvisible();
|
||||
}
|
||||
|
||||
if (mWifiEntrySecurity != WifiEntry.SECURITY_EAP
|
||||
&& mWifiEntrySecurity != WifiEntry.SECURITY_EAP_SUITE_B) {
|
||||
mView.findViewById(R.id.eap).setVisibility(View.GONE);
|
||||
@@ -1322,11 +1299,6 @@ public class WifiConfigController2 implements TextWatcher,
|
||||
mView.findViewById(R.id.show_password_layout).setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
private void setSaePasswordIdInvisible() {
|
||||
mSaePasswordIdView.setText("");
|
||||
mView.findViewById(R.id.sae_password_id_layout).setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
private void setEapMethodInvisible() {
|
||||
mView.findViewById(R.id.eap).setVisibility(View.GONE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user