OSDN Git Service

docs: Fixed contradictory info in IntentFilter
authorKevin Hufnagle <khufnagle@google.com>
Tue, 3 Sep 2019 21:54:29 +0000 (21:54 +0000)
committerKevin Hufnagle <khufnagle@google.com>
Tue, 3 Sep 2019 21:54:31 +0000 (21:54 +0000)
The docs now (correctly) state that, if an intent filter specifies no
actions, then it only matches intents that don't specify/contain an
action.

Test: make ds-docs -j32

Bug: 140435265
Change-Id: I8931c6540cb22edd15e8caa1be984ca70efcdc96

core/java/android/content/IntentFilter.java

index 9d52363..099dea2 100644 (file)
@@ -60,9 +60,7 @@ import java.util.Set;
  * multiple possible matching values (via {@link #addAction},
  * {@link #addDataType}, {@link #addDataScheme}, {@link #addDataSchemeSpecificPart},
  * {@link #addDataAuthority}, {@link #addDataPath}, and {@link #addCategory}, respectively).
- * For actions, the field
- * will not be tested if no values have been given (treating it as a wildcard);
- * if no data characteristics are specified, however, then the filter will
+ * For actions, if no data characteristics are specified, then the filter will
  * only match intents that contain no data.
  *
  * <p>The data characteristic is