Wifi: Restore hidden flag for hidden networks on update network

Currently when user modifies any of the network parameter for hidden
networks, hidden flag is not updated. As a result this network is no
longer part of hidden networks, we are unable to reconnect when user
triggers wifi off and on.

This commit sets the value of hiddenSSID flag of config at the Settings
side on network update.

Test: manual test with hidden access point
Bug: 73256783

Change-Id: Ic20f03345645d8bf3bc9c3ff44910dd3f2797fec
This commit is contained in:
Anurag Das
2017-12-18 14:47:01 +05:30
committed by Daichi Ueura
parent f32fa0b5f6
commit f44da638bd

View File

@@ -517,6 +517,7 @@ public class WifiConfigController implements TextWatcher,
mAccessPoint.getSsidStr());
} else {
config.networkId = mAccessPoint.getConfig().networkId;
config.hiddenSSID = mAccessPoint.getConfig().hiddenSSID;
}
config.shared = mSharedCheckBox.isChecked();