Merge "WifiManagerTest: Use addNetwork + enableNetwork instead of save" into rvc-dev am: 36a0a541dc

Change-Id: I05d6ec32b0d78668867dad64d01391921d3b4e91
This commit is contained in:
TreeHugger Robot
2020-03-24 01:54:52 +00:00
committed by Automerger Merge Worker

View File

@@ -2183,7 +2183,9 @@ public class WifiManagerTest extends AndroidTestCase {
// Restore the original saved networks.
if (savedNetworks != null) {
for (WifiConfiguration network : savedNetworks) {
mWifiManager.save(network, null);
network.networkId = WifiConfiguration.INVALID_NETWORK_ID;
int networkId = mWifiManager.addNetwork(network);
mWifiManager.enableNetwork(networkId, false);
}
}
uiAutomation.dropShellPermissionIdentity();