mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 13:04:05 -08:00
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:
parent
c4e860f812
commit
83c5ecf410
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue