OSDN Git Service

Fix DhcpResults.setDomain() and StaticIpConfiguration.toLinkProperties()
authorPaul Jensen <pauljensen@google.com>
Wed, 5 Nov 2014 14:35:26 +0000 (09:35 -0500)
committerPaul Jensen <pauljensen@google.com>
Wed, 5 Nov 2014 14:35:26 +0000 (09:35 -0500)
setDomain() and toLinkProperties() were not setting the domains.
The setDomain() bug affected Wifi and I believe the toLinkProperties()
bug affected Ethernet and Bluetooth reverse-tethering.

bug:18252947
Change-Id: I8764cb944c293e01d99822bb52b55af7e9d77853

core/java/android/net/DhcpResults.java
core/java/android/net/StaticIpConfiguration.java

index 71df60a..6159e1e 100644 (file)
@@ -200,7 +200,7 @@ public class DhcpResults extends StaticIpConfiguration {
         vendorInfo = info;
     }
 
-    public void setDomains(String domains) {
-        domains = domains;
+    public void setDomains(String newDomains) {
+        domains = newDomains;
     }
 }
index 5a273cf..598a503 100644 (file)
@@ -107,6 +107,7 @@ public class StaticIpConfiguration implements Parcelable {
         for (InetAddress dns : dnsServers) {
             lp.addDnsServer(dns);
         }
+        lp.setDomains(domains);
         return lp;
     }