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

Commit ed2a3ec9 authored by Chalard Jean's avatar Chalard Jean Committed by Gerrit Code Review
Browse files

Merge "[NS A11] Small refactor"

parents 85e8fd5a d39db875
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -6353,7 +6353,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
    private void rematchNetworkAndRequests(NetworkAgentInfo newNetwork, long now) {
        ensureRunningOnConnectivityServiceThread();
        if (!newNetwork.everConnected) return;
        boolean keep = newNetwork.isVPN();
        boolean isNewDefault = false;
        NetworkAgentInfo oldDefaultNetwork = null;

@@ -6395,7 +6394,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
                    Slog.wtf(TAG, "BUG: " + newSatisfier.name() + " already has " + nri.request);
                }
                addedRequests.add(nri);
                keep = true;
                // Tell NetworkFactories about the new score, so they can stop
                // trying to connect if they know they cannot match it.
                // TODO - this could get expensive if we have a lot of requests for this
@@ -6502,7 +6500,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
            notifyLockdownVpn(newNetwork);
        }

        if (keep) {
        if (reassignedRequests.containsValue(newNetwork) || newNetwork.isVPN()) {
            // Notify battery stats service about this network, both the normal
            // interface and any stacked links.
            // TODO: Avoid redoing this; this must only be done once when a network comes online.