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

Commit 9d071388 authored by Hugo Benichi's avatar Hugo Benichi Committed by android-build-merger
Browse files

Merge "Really allow NetworkAgent immutable updates to NetworkCapabilities" am:...

Merge "Really allow NetworkAgent immutable updates to NetworkCapabilities" am: cb3c24e3 am: 461f4eb0 am: beae6211
am: c61e1cca

Change-Id: Icd8e328e3c810a644bfb83798bd42fed8dc70425
parents c5b37d1b c61e1cca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4583,8 +4583,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.