Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c407861 authored by Todd Kennedy's avatar Todd Kennedy
Browse files

Adjust javadoc for filter priority

This clarifies the usage of setPriority() for receiver filters.
Should also adjust the XML description of android:priority to
better describe the new behaviour for activity filters

Bug: 26417683
Change-Id: I96b2d90d71640041e232c401cf6e6838dbdbfeab
parent 1314d087
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -449,11 +449,12 @@ public class IntentFilter implements Parcelable {
    }

    /**
     * Modify priority of this filter.  The default priority is 0. Positive
     * values will be before the default, lower values will be after it.
     * Applications must use a value that is larger than
     * {@link #SYSTEM_LOW_PRIORITY} and smaller than
     * {@link #SYSTEM_HIGH_PRIORITY} .
     * Modify priority of this filter.  This only affects receiver filters.
     * The priority of activity filters are set in XML and cannot be changed
     * programatically. The default priority is 0. Positive values will be
     * before the default, lower values will be after it. Applications should
     * use a value that is larger than {@link #SYSTEM_LOW_PRIORITY} and
     * smaller than {@link #SYSTEM_HIGH_PRIORITY} .
     *
     * @param priority The new priority value.
     *