Add filter ordering am: c2e96d45d2 am: cdda4eed12
am: 792cac6fd6
Change-Id: I94c998b9b32c4e6d3e7162cda4ff8bc7723dd2d9
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user