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

Commit 2716e841 authored by Sundeep Ghuman's avatar Sundeep Ghuman
Browse files

Separate multiple DNS addresses with newlines.

Bug: b/65037256
Test: make -j40 RunSettingsRoboTests
Change-Id: I4b0709648f8e236177ea73338cfb0d42a5971c06
parent 6f72b574
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -433,7 +433,7 @@ public class WifiDetailPreferenceController extends AbstractPreferenceController
        String dnsServers = mLinkProperties.getDnsServers().stream()
                .filter(Inet4Address.class::isInstance)
                .map(InetAddress::getHostAddress)
                .collect(Collectors.joining(","));
                .collect(Collectors.joining("\n"));

        // Update UI.
        updatePreference(mIpAddressPref, ipv4Address);
+2 −2
Original line number Diff line number Diff line
@@ -434,7 +434,7 @@ public class WifiDetailPreferenceControllerTest {

        displayAndResume();

        verify(mockDnsPref).setDetailText("8.8.4.4,8.8.8.8");
        verify(mockDnsPref).setDetailText("8.8.4.4\n8.8.8.8");
    }

    @Test
@@ -546,7 +546,7 @@ public class WifiDetailPreferenceControllerTest {
        lp.addDnsServer(Constants.IPV4_DNS2);
        updateLinkProperties(lp);
        inOrder.verify(mockDnsPref).setDetailText(
                Constants.IPV4_DNS1.getHostAddress() + "," +
                Constants.IPV4_DNS1.getHostAddress() + "\n" +
                Constants.IPV4_DNS2.getHostAddress());
        inOrder.verify(mockDnsPref).setVisible(true);
    }