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

Commit 771c11b7 authored by Vinit Deshapnde's avatar Vinit Deshapnde Committed by Android (Google) Code Review
Browse files

Merge "Fix duplicate SSID entries in the WifiSettings UI" into klp-dev

parents dc8d7048 1ed7a020
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -680,10 +680,16 @@ class WifiConfigStore {
            }
            config.ipAssignment = IpAssignment.DHCP;
            config.proxySettings = ProxySettings.NONE;

            if (mNetworkIds.containsKey(configKey(config))) {
                // That SSID is already known, just ignore this duplicate entry
                localLog("discarded duplicate network", config.networkId);
            } else {
                mConfiguredNetworks.put(config.networkId, config);
                mNetworkIds.put(configKey(config), config.networkId);
                localLog("loaded configured network", config.networkId);
            }
        }

        readIpAndProxyConfigurations();
        sendConfiguredNetworksChangedBroadcast();