diff options
-rw-r--r-- | src/com/android/settings/wifi/WifiConfigController.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/settings/wifi/WifiConfigController.java b/src/com/android/settings/wifi/WifiConfigController.java index 877979806..497132cd9 100644 --- a/src/com/android/settings/wifi/WifiConfigController.java +++ b/src/com/android/settings/wifi/WifiConfigController.java @@ -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()); } |