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

Commit 38463bb9 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Ignore network policies with missing IMSI." into mnc-dr-dev

parents 840f3890 56859f32
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -288,7 +288,8 @@ public class NetworkTemplate implements Parcelable {
        } else {
            final boolean matchesType = (sForceAllNetworkTypes
                    || contains(DATA_USAGE_NETWORK_TYPES, ident.mType));
            return matchesType && ArrayUtils.contains(mMatchSubscriberIds, ident.mSubscriberId);
            return matchesType && !ArrayUtils.isEmpty(mMatchSubscriberIds)
                    && ArrayUtils.contains(mMatchSubscriberIds, ident.mSubscriberId);
        }
    }