Update to use new ConnectivityManager API.
Bug: 77468593 Test: builds Change-Id: I1fa542e015add2dd8b0e8620f2021c1a5c1c9f1a
This commit is contained in:
@@ -200,7 +200,7 @@ public class ConfigDialogFragment extends InstrumentedDialogFragment implements
|
||||
|
||||
final ConnectivityManager conn = ConnectivityManager.from(mContext);
|
||||
conn.setAlwaysOnVpnPackageForUser(UserHandle.myUserId(), null,
|
||||
/* lockdownEnabled */ false);
|
||||
/* lockdownEnabled */ false, /* lockdownWhitelist */ null);
|
||||
VpnUtils.setLockdownVpn(mContext, profile.key);
|
||||
} else {
|
||||
// update only if lockdown vpn has been changed
|
||||
|
||||
Reference in New Issue
Block a user