Merge "Ignore network policies with missing IMSI." into mnc-dr-dev am: 38463bb950
am: 5d7604323f
* commit '5d7604323fdcf3a26085a9545adfc595205f12da':
Ignore network policies with missing IMSI.
This commit is contained in:
@@ -288,7 +288,8 @@ public class NetworkTemplate implements Parcelable {
|
|||||||
} else {
|
} else {
|
||||||
final boolean matchesType = (sForceAllNetworkTypes
|
final boolean matchesType = (sForceAllNetworkTypes
|
||||||
|| contains(DATA_USAGE_NETWORK_TYPES, ident.mType));
|
|| contains(DATA_USAGE_NETWORK_TYPES, ident.mType));
|
||||||
return matchesType && ArrayUtils.contains(mMatchSubscriberIds, ident.mSubscriberId);
|
return matchesType && !ArrayUtils.isEmpty(mMatchSubscriberIds)
|
||||||
|
&& ArrayUtils.contains(mMatchSubscriberIds, ident.mSubscriberId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user