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

Commit 686be938 authored by Etan Cohen's avatar Etan Cohen Committed by Android Git Automerger
Browse files

am c09544bb: Merge "Fix filter on CONNECTIVITY_ACTION updates" into mnc-dev

* commit 'c09544bb':
  Fix filter on CONNECTIVITY_ACTION updates
parents 7efb0521 c09544bb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -559,8 +559,9 @@ public class ConnectivityService extends IConnectivityManager.Stub
            final DetailedState state = nai.networkInfo.getDetailedState();
            for (int type = 0; type < mTypeLists.length; type++) {
                final ArrayList<NetworkAgentInfo> list = mTypeLists[type];
                final boolean contains = (list != null && list.contains(nai));
                final boolean isFirst = (list != null && list.size() > 0 && nai == list.get(0));
                if (isFirst || isDefault) {
                if (isFirst || (contains && isDefault)) {
                    maybeLogBroadcast(nai, state, type, isDefault);
                    sendLegacyNetworkBroadcast(nai, state, type);
                }