Merge "Update underlying networks if it is changed" am: 9d8001cea1 am: 2863db4ac3 am: ef372ecce9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1838422 Change-Id: I98ed5f628794742c86dcf9596247b74ca7beab07
This commit is contained in:
@@ -1461,7 +1461,10 @@ public class Vpn {
|
||||
// parameters. If that fails, disconnect.
|
||||
if (oldConfig != null
|
||||
&& updateLinkPropertiesInPlaceIfPossible(mNetworkAgent, oldConfig)) {
|
||||
// Keep mNetworkAgent unchanged
|
||||
// Update underlying networks if it is changed.
|
||||
if (!Arrays.equals(oldConfig.underlyingNetworks, config.underlyingNetworks)) {
|
||||
setUnderlyingNetworks(config.underlyingNetworks);
|
||||
}
|
||||
} else {
|
||||
// Initialize the state for a new agent, while keeping the old one connected
|
||||
// in case this new connection fails.
|
||||
|
||||
Reference in New Issue
Block a user