Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 461f4eb0 authored by Hugo Benichi's avatar Hugo Benichi Committed by android-build-merger
Browse files

Merge "Really allow NetworkAgent immutable updates to NetworkCapabilities"

am: cb3c24e3

Change-Id: Ifbdd005576b3f0fbf278ecec81ce3e4308c6276d
parents f7149eb6 cb3c24e3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.