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

Commit 35e24475 authored by Betty Chang's avatar Betty Chang Committed by Android (Google) Code Review
Browse files

Merge "Assign StaticIpConfiguration builder value to global variable" into sc-dev

parents 31a697eb 01cc97f3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -923,7 +923,6 @@ public class WifiConfigController2 implements TextWatcher,
                    return R.string.wifi_ip_settings_invalid_dns;
                }
                dnsServers.add(dnsAddr);
                staticIpConfiguration.getDnsServers().add(dnsAddr);
            }

            if (mDns2View.length() > 0) {
@@ -933,14 +932,13 @@ public class WifiConfigController2 implements TextWatcher,
                    return R.string.wifi_ip_settings_invalid_dns;
                }
                dnsServers.add(dnsAddr);
                staticIpConfiguration.getDnsServers().add(dnsAddr);
            }
            staticIPBuilder.setDnsServers(dnsServers);
            return 0;
        } finally {
            // Caller of this method may rely on staticIpConfiguration, so build the final result
            // at the end of the method.
            staticIpConfiguration = staticIPBuilder.build();
            mStaticIpConfiguration = staticIPBuilder.build();
        }
    }