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

am: f801f6d404

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

View File

@@ -3431,10 +3431,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
Slog.w(TAG, "User " + userId + " has no Vpn configuration"); Slog.w(TAG, "User " + userId + " has no Vpn configuration");
return false; 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)) { if (!vpn.setAlwaysOnPackage(packageName, lockdown)) {
return false; return false;
} }