Add filter ordering am: c2e96d45d2

am: cdda4eed12

Change-Id: I6c4782393a5f694cba8238a05e60939169bd464f
This commit is contained in:
Todd Kennedy
2016-09-09 20:08:58 +00:00
committed by android-build-merger
3 changed files with 79 additions and 1 deletions

View File

@@ -265,6 +265,7 @@ public class IntentFilter implements Parcelable {
public static final String SCHEME_HTTPS = "https";
private int mPriority;
private int mOrder;
private final ArrayList<String> mActions;
private ArrayList<String> mCategories = null;
private ArrayList<String> mDataSchemes = null;
@@ -425,6 +426,7 @@ public class IntentFilter implements Parcelable {
*/
public IntentFilter(IntentFilter o) {
mPriority = o.mPriority;
mOrder = o.mOrder;
mActions = new ArrayList<String>(o.mActions);
if (o.mCategories != null) {
mCategories = new ArrayList<String>(o.mCategories);
@@ -477,6 +479,16 @@ public class IntentFilter implements Parcelable {
return mPriority;
}
/** @hide */
public final void setOrder(int order) {
mOrder = order;
}
/** @hide */
public final int getOrder() {
return mOrder;
}
/**
* Set whether this filter will needs to be automatically verified against its data URIs or not.
* The default is false.