Remove references of NetworkAgentConfig constructor

This is hidden, use public Builder instead.

Test: TH
Bug: 182963397
Merged-In: Ib8ea2a17276cfd000e7003fc86d15458e1f82b39
Change-Id: Ib8ea2a17276cfd000e7003fc86d15458e1f82b39
  (cherry-picked from ag/13925162)
This commit is contained in:
junyulai
2021-03-19 14:58:46 +08:00
parent 557797e32c
commit a1a61cde9c
2 changed files with 2 additions and 2 deletions

View File

@@ -1239,7 +1239,7 @@ public class Vpn {
mLegacyState = LegacyVpnInfo.STATE_CONNECTING;
updateState(DetailedState.CONNECTING, "agentConnect");
NetworkAgentConfig networkAgentConfig = new NetworkAgentConfig();
NetworkAgentConfig networkAgentConfig = new NetworkAgentConfig.Builder().build();
networkAgentConfig.allowBypass = mConfig.allowBypass && !mLockdown;
mNetworkCapabilities.setOwnerUid(mOwnerUID);

View File

@@ -1441,7 +1441,7 @@ public class VcnGatewayConnection extends StateMachine {
caps,
lp,
Vcn.getNetworkScore(),
new NetworkAgentConfig(),
new NetworkAgentConfig.Builder().build(),
mVcnContext.getVcnNetworkProvider()) {
@Override
public void unwanted() {