Remove reference of NetworkAgent#unwanted()

This is hidden, use onNetworkUnwanted instead.

Test: TH
Bug: 182963397
Change-Id: I4e80a75d25cfd9ffc07aa219fff5a2604eb307f2
This commit is contained in:
junyulai
2021-03-19 15:12:37 +08:00
parent 549dfb9536
commit 29eeaf410f
2 changed files with 2 additions and 2 deletions

View File

@@ -1262,7 +1262,7 @@ public class Vpn {
mNetworkAgent = new NetworkAgent(mContext, mLooper, NETWORKTYPE /* logtag */,
mNetworkCapabilities, lp, VPN_DEFAULT_SCORE, networkAgentConfig, mNetworkProvider) {
@Override
public void unwanted() {
public void onNetworkUnwanted() {
// We are user controlled, not driven by NetworkRequest.
}
};

View File

@@ -1444,7 +1444,7 @@ public class VcnGatewayConnection extends StateMachine {
new NetworkAgentConfig.Builder().build(),
mVcnContext.getVcnNetworkProvider()) {
@Override
public void unwanted() {
public void onNetworkUnwanted() {
Slog.d(TAG, "NetworkAgent was unwanted");
teardownAsynchronously();
}