asksven / BetterWifiOnOff

An intelligent agent to manage your Wifi status
26 stars 14 forks source link

[bug] WifiControl.isWhitelistedWifiConnected #133

Closed asksven closed 11 years ago

asksven commented 11 years ago

return ((whiteList.indexOf(ssid) != -1) && (!ssid.equals("")));

Return true if the current SSID is contained in one of the whitelisted ones. E.g.: current = abc whitelist = abcd, abcde, abcef

Should be: List whitelistedList = Arrays.asList(whiteList.split(",")); return ( (whitelistedList.contains(ssid)) && (!ssid.equals("")) );