wifisettings -->add network--->choose different security ,but the password did not show;
change code as follow:
/packages/apps/Settings/src/com/android/settings/wifi/WifiConfigController.java
/packages/apps/Settings/src/com/android/settings/wifi/WifiConfigController.java
public void onItemSelected(AdapterView<?> parent, View view, int position, long id)
if (parent == mSecuritySpinner)
change to
if (parent == mSecuritySpinner || parent.getId() == R.id.wpa_security)
reason: the cause of this problem is the id of "mSecuritySpinner" will be set to "R.id.wpa_security" when the software did not support WAPI ;
int viewId = R.id.security;
if (FeatureOption.MTK_WAPI_SUPPORT) {
String type = SystemProperties.get(WLAN_PROP_KEY,
DEFAULT_WLAN_PROP);
if (type.equals(WIFI_WAPI)) {
if (AccessPointExt.isWFATestSupported()) {
viewId = R.id.security_wfa; // WIFI + WAPI, support
// separate WPA2 PSK
// security
} else {
viewId = R.id.security; // WIFI + WAPI
}
} else if (type.equals(WIFI)) {
if (AccessPointExt.isWFATestSupported()) {
viewId = R.id.wpa_security_wfa; // WIFI only, support
// separate WPA2 PSK
// security
} else {
viewId = R.id.wpa_security; // WIFI only
}
} else if (type.equals(WAPI)) {
viewId = R.id.wapi_security; // WAPI only
}
} else {
if (AccessPointExt.isWFATestSupported()) {
viewId = R.id.wpa_security_wfa; // WIFI only, support
// separate WPA and WPA2 PSK
// security
} else {
viewId = R.id.wpa_security; // WIFI only
}
}
switchWlanSecuritySpinner((Spinner) mView.findViewById(viewId));