Merge "[MS74] Expose NetworkTemplate#matches"
This commit is contained in:
@@ -652,7 +652,9 @@ public final class NetworkTemplate implements Parcelable {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public boolean matches(NetworkIdentity ident) {
|
||||
@SystemApi(client = MODULE_LIBRARIES)
|
||||
public boolean matches(@NonNull NetworkIdentity ident) {
|
||||
Objects.requireNonNull(ident);
|
||||
if (!matchesMetered(ident)) return false;
|
||||
if (!matchesRoaming(ident)) return false;
|
||||
if (!matchesDefaultNetwork(ident)) return false;
|
||||
|
||||
Reference in New Issue
Block a user