Merge "WifiManagerTest: Use addNetwork + enableNetwork instead of save" into rvc-dev am: 36a0a541dc
Change-Id: I05d6ec32b0d78668867dad64d01391921d3b4e91
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user