Skip to content

Commit

Permalink
Always save wifi ssid when connected
Browse files Browse the repository at this point in the history
  • Loading branch information
Chavi Weingarten committed Feb 26, 2016
1 parent bd1a745 commit 1330074
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ private void setDefaultNetworkIfNecessary(String wifiSsid) {
final String trimmedSsid = trimWifiSsid(wifiSsid);

if (!trimmedSsid.equals(connectedWifi.get())) {
connectedWifi.set(trimmedSsid);

if (isConnected(wifiSsid)) {
notifyWifiConnected(wifiSsid);
return;
Expand All @@ -455,7 +457,6 @@ private void setDefaultNetworkIfNecessary(String wifiSsid) {
} else {
notifyWifiConnected(trimmedSsid);
}
connectedWifi.set(trimmedSsid);
}
}

Expand Down

0 comments on commit 1330074

Please sign in to comment.