Issue 1057 save wifi config on successful connect

git-svn-id: https://zxing.googlecode.com/svn/trunk@2026 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2011-11-11 14:17:16 +00:00
parent c4e860f812
commit 83c5ecf410

View file

@ -103,6 +103,7 @@ public final class WifiConfigManager {
// Try to disable the current network and start a new one.
if (wifiManager.enableNetwork(networkId, true)) {
Log.i(TAG, "Associating to network " + config.SSID);
wifiManager.saveConfiguration();
} else {
Log.w(TAG, "Failed to enable network " + config.SSID);
}