Merge \\\"Move \\\'is already always-on\\\' check into Vpn.java\\\" into nyc-dev am: 6a58c98cef am: b4f3bf969d

am: f99a160ca1

Change-Id: I525ebc4b6c27eff17ff57fac7f664c221cbc2954
This commit is contained in:
Robin Lee
2016-06-16 10:18:43 +00:00
committed by android-build-merger

View File

@@ -3434,10 +3434,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
Slog.w(TAG, "User " + userId + " has no Vpn configuration");
return false;
}
// If the current VPN package is the same as the new one, this is a no-op
if (TextUtils.equals(packageName, vpn.getAlwaysOnPackage())) {
return true;
}
if (!vpn.setAlwaysOnPackage(packageName, lockdown)) {
return false;
}