Apply LinkProperties changes.
bug:15142362 Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
This commit is contained in:
@@ -561,7 +561,7 @@ public class WifiConfigController implements TextWatcher,
|
||||
} catch (IllegalArgumentException e) {
|
||||
return R.string.wifi_ip_settings_invalid_dns;
|
||||
}
|
||||
linkProperties.addDns(dnsAddr);
|
||||
linkProperties.addDnsServer(dnsAddr);
|
||||
}
|
||||
|
||||
if (mDns2View.length() > 0) {
|
||||
@@ -571,7 +571,7 @@ public class WifiConfigController implements TextWatcher,
|
||||
} catch (IllegalArgumentException e) {
|
||||
return R.string.wifi_ip_settings_invalid_dns;
|
||||
}
|
||||
linkProperties.addDns(dnsAddr);
|
||||
linkProperties.addDnsServer(dnsAddr);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -798,7 +798,7 @@ public class WifiConfigController implements TextWatcher,
|
||||
}
|
||||
}
|
||||
|
||||
Iterator<InetAddress> dnsIterator = linkProperties.getDnses().iterator();
|
||||
Iterator<InetAddress> dnsIterator = linkProperties.getDnsServers().iterator();
|
||||
if (dnsIterator.hasNext()) {
|
||||
mDns1View.setText(dnsIterator.next().getHostAddress());
|
||||
}
|
||||
|
Reference in New Issue
Block a user