Merge \"Move \'is already always-on\' check into Vpn.java\" into nyc-dev
am: c32921dcda
Change-Id: Id363cef8369d63ce4739089d94139e34ed25f665
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user