summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author lucaslin <lucaslin@google.com> 2023-02-24 10:05:56 +0000
committer Lucas Lin <lucaslin@google.com> 2023-02-24 10:24:11 +0000
commitfae5b6988b73c4b5e35c33b08243aaa93c487cac (patch)
tree30875013a620ddecc7c6be3ea0dc9880db78cc93 /api/api.go
parentb963d9a0086aa80ec780f08c2e7745c74b4b66d9 (diff)
Clear the information of the underlying network
The NetworkCapabilities and LinkProperties of the underlying network should be cleared when there is a new underlying network. Currently, Vpn.java only clear both NetworkCapabilities and LinkProperties of the underlying when onLost() is called or when the VPN is disconnected. But onLost() won't be fired if the device is connected to mobile data first, then connects to wifi later. For this case, both mUnderlyingNetworkCapabilities and mUnderlyingLinkProperties keep the old value until onLinkPropertiesChanged() and onNetworkCapabilitiesChanged() are called. Test: atest FrameworksNetTests Change-Id: I5caa1e0217190062eb84a064bb1bb3aff725dd66
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions