diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2014-06-06 17:42:32 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2014-06-08 08:58:42 -0700 |
commit | 51d898fd0223a4b7c728980ab987dd985c02df5f (patch) | |
tree | 2c78d399a70670a9bbd4a06510fef0cf6de528ba /src/com/android/settings/wifi/WifiConfigController.java | |
parent | fd4a80ed6716aade29abf65570684bf1004e717e (diff) | |
download | packages_apps_Settings-51d898fd0223a4b7c728980ab987dd985c02df5f.tar.gz packages_apps_Settings-51d898fd0223a4b7c728980ab987dd985c02df5f.tar.bz2 packages_apps_Settings-51d898fd0223a4b7c728980ab987dd985c02df5f.zip |
Apply LinkProperties changes.
bug:15142362
Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
Diffstat (limited to 'src/com/android/settings/wifi/WifiConfigController.java')
-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()); } |