diff options
| author | Felipe Leme <felipeal@google.com> | 2016-01-27 08:39:09 -0800 |
|---|---|---|
| committer | Felipe Leme <felipeal@google.com> | 2016-01-27 09:11:49 -0800 |
| commit | 3cb48cd2a8a73bde15f88810fb4542777ef7ee83 (patch) | |
| tree | 038ccb027838fd2731a720a5c01192e5e8a14274 /core/java | |
| parent | ec17538d46a49530ed6efdc2842ee16eaf18b9f6 (diff) | |
Minor improvements on parseCommandArgs,
- Added --receiver-foreground flag.
- Documented -f flag.
BUG: 26805230
Change-Id: Iee7a45dba549773abd7b026f5205ab94f0a8ef2a
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/Intent.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 06da4955c10f..426dafb4190d 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -5698,6 +5698,9 @@ public class Intent implements Parcelable, Cloneable { case "--receiver-replace-pending": intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); break; + case "--receiver-foreground": + intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); + break; case "--selector": intent.setDataAndType(data, type); intent = new Intent(); @@ -5807,6 +5810,7 @@ public class Intent implements Parcelable, Cloneable { " [--esal <EXTRA_KEY> <EXTRA_STRING_VALUE>[,<EXTRA_STRING_VALUE...]]", " (mutiple extras passed as List<String>; to embed a comma into a string,", " escape it using \"\\,\")", + " [--f <FLAG>]", " [--grant-read-uri-permission] [--grant-write-uri-permission]", " [--grant-persistable-uri-permission] [--grant-prefix-uri-permission]", " [--debug-log-resolution] [--exclude-stopped-packages]", @@ -5820,6 +5824,7 @@ public class Intent implements Parcelable, Cloneable { " [--activity-single-top] [--activity-clear-task]", " [--activity-task-on-home]", " [--receiver-registered-only] [--receiver-replace-pending]", + " [--receiver-foreground]", " [--selector]", " [<URI> | <PACKAGE> | <COMPONENT>]" }; |
