From 2c4078611ad1f91c84ef8fd4fac107699b670b06 Mon Sep 17 00:00:00 2001 From: Todd Kennedy Date: Wed, 6 Apr 2016 10:57:51 -0700 Subject: [PATCH] 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 --- core/java/android/content/IntentFilter.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/java/android/content/IntentFilter.java b/core/java/android/content/IntentFilter.java index ed5dfa5393ecb..22ab43bbb4292 100644 --- a/core/java/android/content/IntentFilter.java +++ b/core/java/android/content/IntentFilter.java @@ -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. *