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

Commit 5e7f08f5 authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Android Git Automerger
Browse files

am 6c1d0e07: am d8f7e048: Merge "Update LegacyTypeTracker state before sending...

am 6c1d0e07: am d8f7e048: Merge "Update LegacyTypeTracker state before sending connect broadcasts." into lmp-dev

* commit '6c1d0e07':
  Update LegacyTypeTracker state before sending connect broadcasts.
parents a0bdf9cc 6c1d0e07
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -516,11 +516,13 @@ public class ConnectivityService extends IConnectivityManager.Stub {
                return;
            }

            if (list.isEmpty() || isDefaultNetwork(nai)) {
            list.add(nai);

            // Send a broadcast if this is the first network of its type or if it's the default.
            if (list.size() == 1 || isDefaultNetwork(nai)) {
                maybeLogBroadcast(nai, true, type);
                sendLegacyNetworkBroadcast(nai, true, type);
            }
            list.add(nai);
        }

        /** Removes the given network from the specified legacy type list. */