Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51d898fd authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Apply LinkProperties changes.

bug:15142362
Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
parent fd4a80ed
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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());
                }