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

Commit a6f315a3 authored by Chalard Jean's avatar Chalard Jean
Browse files

[NS A23.1] Minor cleanup

The argument is always true.

Test: ConnectivityServiceTest
Change-Id: Ibebdae14e63e6baf74db054038ee575ec462f6d5
parent 7ec1ff64
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -5959,7 +5959,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
            // the change we're processing can't affect any requests, it can only affect the listens
            // on this network. We might have been called by rematchNetworkAndRequests when a
            // network changed foreground state.
            processListenRequests(nai, true);
            processListenRequests(nai);
        } else {
            // If the requestable capabilities have changed or the score changed, we can't have been
            // called by rematchNetworkAndRequests, so it's safe to start a rematch.
@@ -6267,14 +6267,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
        updateAllVpnsCapabilities();
    }

    private void processListenRequests(@NonNull NetworkAgentInfo nai, boolean capabilitiesChanged) {
    private void processListenRequests(@NonNull final NetworkAgentInfo nai) {
        // For consistency with previous behaviour, send onLost callbacks before onAvailable.
        processNewlyLostListenRequests(nai);

        if (capabilitiesChanged) {
        notifyNetworkCallbacks(nai, ConnectivityManager.CALLBACK_CAP_CHANGED);
        }

        processNewlySatisfiedListenRequests(nai);
    }