Merge "Add isMatchRuleMobile back" am: 9ff2fe7747
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2444979 Change-Id: I0392b9f2bd1959c0e4ab7dcf5820163d9573a767 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -436,6 +436,19 @@ public final class NetworkTemplate implements Parcelable {
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO(b/270089918): Remove this method after no callers.
|
||||
/** @hide */
|
||||
public boolean isMatchRuleMobile() {
|
||||
switch (mMatchRule) {
|
||||
case MATCH_MOBILE:
|
||||
// Old MATCH_MOBILE_WILDCARD
|
||||
case 6:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get match rule of the template. See {@code MATCH_*}.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user