Update to use new ConnectivityManager API.

Bug: 77468593
Test: builds
Change-Id: I1fa542e015add2dd8b0e8620f2021c1a5c1c9f1a
This commit is contained in:
Pavel Grafov
2019-01-25 18:58:17 +00:00
parent 35416e7529
commit 6a0a7be9a2
3 changed files with 4 additions and 3 deletions

View File

@@ -163,7 +163,8 @@ public class AppDialogFragment extends InstrumentedDialogFragment implements App
final int userId = getUserId();
try {
if (mPackageInfo.packageName.equals(VpnUtils.getConnectedPackage(mService, userId))) {
mService.setAlwaysOnVpnPackage(userId, null, /* lockdownEnabled */ false);
mService.setAlwaysOnVpnPackage(userId, null, /* lockdownEnabled */ false,
/* lockdownWhitelist */ null);
mService.prepareVpn(mPackageInfo.packageName, VpnConfig.LEGACY_VPN, userId);
}
} catch (RemoteException e) {