DO NOT MERGE Proxy and IP fixes
Fix dual display of IP addresses for static IP Fix inputType for proxy and IP fields Add hint texts for IP fields Change-Id: I5b556a07c2a5b69ecec959c933f2872e70496946
This commit is contained in:
committed by
Irfan SHeriff
parent
d61737b560
commit
00615cf5dc
@@ -198,11 +198,6 @@ public class WifiConfigController implements TextWatcher,
|
||||
WifiInfo info = mAccessPoint.getInfo();
|
||||
if (info != null) {
|
||||
addRow(group, R.string.wifi_speed, info.getLinkSpeed() + WifiInfo.LINK_SPEED_UNITS);
|
||||
// TODO: fix the ip address for IPv6.
|
||||
int address = info.getIpAddress();
|
||||
if (address != 0) {
|
||||
addRow(group, R.string.wifi_ip_address, Formatter.formatIpAddress(address));
|
||||
}
|
||||
}
|
||||
|
||||
if (mAccessPoint.networkId != INVALID_NETWORK_ID) {
|
||||
@@ -211,6 +206,10 @@ public class WifiConfigController implements TextWatcher,
|
||||
mIpSettingsSpinner.setSelection(STATIC_IP);
|
||||
} else {
|
||||
mIpSettingsSpinner.setSelection(DHCP);
|
||||
//Display IP addresses
|
||||
for(InetAddress a : config.linkProperties.getAddresses()) {
|
||||
addRow(group, R.string.wifi_ip_address, a.getHostAddress());
|
||||
}
|
||||
}
|
||||
|
||||
if (config.proxySettings == ProxySettings.STATIC) {
|
||||
|
Reference in New Issue
Block a user