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

Commit 3cb48cd2 authored by Felipe Leme's avatar Felipe Leme
Browse files

Minor improvements on parseCommandArgs,

- Added --receiver-foreground flag.
- Documented -f flag.

BUG: 26805230
Change-Id: Iee7a45dba549773abd7b026f5205ab94f0a8ef2a
parent ec17538d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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>]"
        };