Merge "Always startOrMigrate connection when caps change" am: 5288559979
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2514996 Change-Id: Ib3dfb94a404d96ec89fba491b7656c2f152a401f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3744,12 +3744,10 @@ public class Vpn {
|
||||
+ mUnderlyingNetworkCapabilities + " to " + nc);
|
||||
final NetworkCapabilities oldNc = mUnderlyingNetworkCapabilities;
|
||||
mUnderlyingNetworkCapabilities = nc;
|
||||
if (oldNc == null) {
|
||||
// A new default network is available.
|
||||
if (oldNc == null || !nc.getSubscriptionIds().equals(oldNc.getSubscriptionIds())) {
|
||||
// A new default network is available, or the subscription has changed.
|
||||
// Try to migrate the session, or failing that, start a new one.
|
||||
startOrMigrateIkeSession(mActiveNetwork);
|
||||
} else if (!nc.getSubscriptionIds().equals(oldNc.getSubscriptionIds())) {
|
||||
// Renew carrierConfig values.
|
||||
maybeMigrateIkeSessionAndUpdateVpnTransportInfo(mActiveNetwork);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user