summaryrefslogtreecommitdiffstats
path: root/core/java/android/net/ProxyDataTracker.java
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2014-06-06 10:30:11 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2014-06-08 12:54:23 -0700
commitdf2b878ff4e7b4a258588d3a93574c399db78a07 (patch)
tree465275c2d074921e123c726f3a0063c0541cf1dd /core/java/android/net/ProxyDataTracker.java
parent915c8d58414cb9c2dd97459cacf9eefbe22267a1 (diff)
downloadframeworks_base-df2b878ff4e7b4a258588d3a93574c399db78a07.zip
frameworks_base-df2b878ff4e7b4a258588d3a93574c399db78a07.tar.gz
frameworks_base-df2b878ff4e7b4a258588d3a93574c399db78a07.tar.bz2
Fix public API of LinkProperties.
bug:15142362 Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
Diffstat (limited to 'core/java/android/net/ProxyDataTracker.java')
-rw-r--r--core/java/android/net/ProxyDataTracker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/net/ProxyDataTracker.java b/core/java/android/net/ProxyDataTracker.java
index 0340e7e..a578383 100644
--- a/core/java/android/net/ProxyDataTracker.java
+++ b/core/java/android/net/ProxyDataTracker.java
@@ -108,8 +108,8 @@ public class ProxyDataTracker extends BaseNetworkStateTracker {
mNetworkCapabilities = new NetworkCapabilities();
mNetworkInfo.setIsAvailable(true);
try {
- mLinkProperties.addDns(InetAddress.getByName(DNS1));
- mLinkProperties.addDns(InetAddress.getByName(DNS2));
+ mLinkProperties.addDnsServer(InetAddress.getByName(DNS1));
+ mLinkProperties.addDnsServer(InetAddress.getByName(DNS2));
mLinkProperties.setInterfaceName(INTERFACE_NAME);
} catch (UnknownHostException e) {
Log.e(TAG, "Could not add DNS address", e);