Merge "Really allow NetworkAgent immutable updates to NetworkCapabilities" am: cb3c24e36b am: 46a7508229
am: 886144c1ff
Change-Id: If3742ea0e2151b9b710eda2fed280c31f7960393
This commit is contained in:
commit
77efec92fe
1 changed files with 2 additions and 2 deletions
|
|
@ -4575,8 +4575,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||
private void updateCapabilities(
|
||||
int oldScore, NetworkAgentInfo nai, NetworkCapabilities networkCapabilities) {
|
||||
// Once a NetworkAgent is connected, complain if some immutable capabilities are removed.
|
||||
if (nai.everConnected &&
|
||||
!nai.networkCapabilities.satisfiedByNetworkCapabilities(networkCapabilities)) {
|
||||
if (nai.everConnected && !nai.networkCapabilities.satisfiedByImmutableNetworkCapabilities(
|
||||
networkCapabilities)) {
|
||||
// TODO: consider not complaining when a network agent degrade its capabilities if this
|
||||
// does not cause any request (that is not a listen) currently matching that agent to
|
||||
// stop being matched by the updated agent.
|
||||
|
|
|
|||
Loading…
Reference in a new issue