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

Commit 317e0aa5 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Fix UI settings display issues

- Update access points to reflect the latest IP configuration
- Show IP list for static IP networks

Bug: 4391449
Change-Id: If8fb6fe8bdca9d6e635b1b12927c17e1661f200c
parent ad466222
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -207,11 +207,12 @@ public class WifiConfigController implements TextWatcher,
                    mIpSettingsSpinner.setSelection(STATIC_IP);
                } else {
                    mIpSettingsSpinner.setSelection(DHCP);
                }
                //Display IP addresses
                for(InetAddress a : config.linkProperties.getAddresses()) {
                    addRow(group, R.string.wifi_ip_address, a.getHostAddress());
                }
                }


                if (config.proxySettings == ProxySettings.STATIC) {
                    mProxySettingsSpinner.setSelection(PROXY_STATIC);
+1 −0
Original line number Diff line number Diff line
@@ -509,6 +509,7 @@ public class WifiSettings extends SettingsPreferenceFragment
                    WifiManager.EXTRA_NETWORK_INFO);
            mConnected.set(info.isConnected());
            changeNextButtonState(info.isConnected());
            updateAccessPoints();
            updateConnectionState(info.getDetailedState());
        } else if (WifiManager.RSSI_CHANGED_ACTION.equals(action)) {
            updateConnectionState(null);