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

am: c32921dcda

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

View File

@@ -3417,10 +3417,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;
}