Skip to content
Commit 4eac85ac authored by lucaslin's avatar lucaslin
Browse files

Clear underlying network info in onDefaultNetworkLost()

Fix the wrong behavior that mUnderlyingNetworkCapabilities and
mUnderlyingLinkProperties is always cleared when
handleSessionLost() is called.

mUnderlyingNetworkCapabilities and mUnderlyingLinkProperties are
the info of underlying network, they should be cleared only when
the underlying network is lost. But the current design will
always clear them when handleSessionLost() is called, which will
make the VPN app won't get NetworkCapabilities and LinkProperties
of underlying network when VpnManager event is sent.

Bug: 237050331
Test: atest FrameworksNetTests:VpnTest
Change-Id: Ibfd4f0199eafb67bfddb4ee0664550d3866e1840
parent 352e892f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment