Loading src/com/android/settings/vpn2/AppDialogFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -138,7 +138,7 @@ public class AppDialogFragment extends DialogFragment implements AppDialog.Liste final int userId = UserHandle.getUserId(mPackageInfo.applicationInfo.uid); try { if (mPackageInfo.packageName.equals(getConnectedPackage(mService, userId))) { mService.setAlwaysOnVpnPackage(userId, null); mService.setAlwaysOnVpnPackage(userId, null, /* lockdownEnabled */ false); mService.prepareVpn(mPackageInfo.packageName, VpnConfig.LEGACY_VPN, userId); } } catch (RemoteException e) { Loading src/com/android/settings/vpn2/AppManagementFragment.java +2 −1 Original line number Diff line number Diff line Loading @@ -176,7 +176,8 @@ public class AppManagementFragment extends SettingsPreferenceFragment if (mUserId == UserHandle.USER_SYSTEM) { VpnUtils.clearLockdownVpn(getContext()); } mConnectivityManager.setAlwaysOnVpnPackageForUser(mUserId, isEnabled ? mPackageName : null); mConnectivityManager.setAlwaysOnVpnPackageForUser(mUserId, isEnabled ? mPackageName : null, /* lockdownEnabled */ false); if (isEnabled && !isVpnAlwaysOn()) { CannotConnectFragment.show(this, mVpnLabel); } Loading src/com/android/settings/vpn2/ConfigDialogFragment.java +2 −1 Original line number Diff line number Diff line Loading @@ -153,7 +153,8 @@ public class ConfigDialogFragment extends DialogFragment implements } final ConnectivityManager conn = ConnectivityManager.from(getActivity()); conn.setAlwaysOnVpnPackageForUser(UserHandle.myUserId(), null); conn.setAlwaysOnVpnPackageForUser(UserHandle.myUserId(), null, /* lockdownEnabled */ false); VpnUtils.setLockdownVpn(getContext(), profile.key); } else { // update only if lockdown vpn has been changed Loading Loading
src/com/android/settings/vpn2/AppDialogFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -138,7 +138,7 @@ public class AppDialogFragment extends DialogFragment implements AppDialog.Liste final int userId = UserHandle.getUserId(mPackageInfo.applicationInfo.uid); try { if (mPackageInfo.packageName.equals(getConnectedPackage(mService, userId))) { mService.setAlwaysOnVpnPackage(userId, null); mService.setAlwaysOnVpnPackage(userId, null, /* lockdownEnabled */ false); mService.prepareVpn(mPackageInfo.packageName, VpnConfig.LEGACY_VPN, userId); } } catch (RemoteException e) { Loading
src/com/android/settings/vpn2/AppManagementFragment.java +2 −1 Original line number Diff line number Diff line Loading @@ -176,7 +176,8 @@ public class AppManagementFragment extends SettingsPreferenceFragment if (mUserId == UserHandle.USER_SYSTEM) { VpnUtils.clearLockdownVpn(getContext()); } mConnectivityManager.setAlwaysOnVpnPackageForUser(mUserId, isEnabled ? mPackageName : null); mConnectivityManager.setAlwaysOnVpnPackageForUser(mUserId, isEnabled ? mPackageName : null, /* lockdownEnabled */ false); if (isEnabled && !isVpnAlwaysOn()) { CannotConnectFragment.show(this, mVpnLabel); } Loading
src/com/android/settings/vpn2/ConfigDialogFragment.java +2 −1 Original line number Diff line number Diff line Loading @@ -153,7 +153,8 @@ public class ConfigDialogFragment extends DialogFragment implements } final ConnectivityManager conn = ConnectivityManager.from(getActivity()); conn.setAlwaysOnVpnPackageForUser(UserHandle.myUserId(), null); conn.setAlwaysOnVpnPackageForUser(UserHandle.myUserId(), null, /* lockdownEnabled */ false); VpnUtils.setLockdownVpn(getContext(), profile.key); } else { // update only if lockdown vpn has been changed Loading