Merge "Don\'t crash trying to disable lockdown VPN" into nyc-dev
am: a6269236a2
* commit 'a6269236a24e00947efd3471f2901783413d56e5':
Don't crash trying to disable lockdown VPN
Change-Id: I71ecde2a45a26c775f5738c232b7d0da834af42a
This commit is contained in:
@@ -176,6 +176,7 @@ public class ConfigDialogFragment extends DialogFragment implements
|
||||
try {
|
||||
LegacyVpnInfo connected = mService.getLegacyVpnInfo(UserHandle.myUserId());
|
||||
if (connected != null && profile.key.equals(connected.key)) {
|
||||
VpnUtils.clearLockdownVpn(getContext());
|
||||
mService.prepareVpn(VpnConfig.LEGACY_VPN, VpnConfig.LEGACY_VPN,
|
||||
UserHandle.myUserId());
|
||||
}
|
||||
|
Reference in New Issue
Block a user