Merge "Really allow NetworkAgent immutable updates to NetworkCapabilities" am: cb3c24e36b am: 46a7508229
am: 886144c1ff
Change-Id: If3742ea0e2151b9b710eda2fed280c31f7960393
This commit is contained in:
@@ -4575,8 +4575,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
private void updateCapabilities(
|
private void updateCapabilities(
|
||||||
int oldScore, NetworkAgentInfo nai, NetworkCapabilities networkCapabilities) {
|
int oldScore, NetworkAgentInfo nai, NetworkCapabilities networkCapabilities) {
|
||||||
// Once a NetworkAgent is connected, complain if some immutable capabilities are removed.
|
// Once a NetworkAgent is connected, complain if some immutable capabilities are removed.
|
||||||
if (nai.everConnected &&
|
if (nai.everConnected && !nai.networkCapabilities.satisfiedByImmutableNetworkCapabilities(
|
||||||
!nai.networkCapabilities.satisfiedByNetworkCapabilities(networkCapabilities)) {
|
networkCapabilities)) {
|
||||||
// TODO: consider not complaining when a network agent degrade its capabilities if this
|
// 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
|
// does not cause any request (that is not a listen) currently matching that agent to
|
||||||
// stop being matched by the updated agent.
|
// stop being matched by the updated agent.
|
||||||
|
|||||||
Reference in New Issue
Block a user