diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-04-19 18:00:04 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-04-19 18:00:04 -0700 |
commit | 7df7d2022d9bebc21a13dcb7ddacaa61f9c2e38e (patch) | |
tree | ba66ba6c9223f2c53786cc8bcf086af0ba885e56 /cmds/am | |
parent | 661f362a2c531c46fdce5359b176a30ba7d16e1f (diff) | |
download | frameworks_base-7df7d2022d9bebc21a13dcb7ddacaa61f9c2e38e.zip frameworks_base-7df7d2022d9bebc21a13dcb7ddacaa61f9c2e38e.tar.gz frameworks_base-7df7d2022d9bebc21a13dcb7ddacaa61f9c2e38e.tar.bz2 |
Fix issue #4499996: LiveWallpaperPreview activity intent filter
Change-Id: I5fc71503d2c59c907da954dbda3587394e6405bf
Diffstat (limited to 'cmds/am')
-rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index 53a0186..8cd8900 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -194,6 +194,12 @@ public class Am { String key = nextArgRequired(); String value = nextArgRequired(); intent.putExtra(key, Uri.parse(value)); + } else if (opt.equals("--ecn")) { + String key = nextArgRequired(); + String value = nextArgRequired(); + ComponentName cn = ComponentName.unflattenFromString(value); + if (cn == null) throw new IllegalArgumentException("Bad component name: " + value); + intent.putExtra(key, cn); } else if (opt.equals("--eia")) { String key = nextArgRequired(); String value = nextArgRequired(); @@ -1366,6 +1372,7 @@ public class Am { " [--el <EXTRA_KEY> <EXTRA_LONG_VALUE> ...]\n" + " [--ef <EXTRA_KEY> <EXTRA_FLOAT_VALUE> ...]\n" + " [--eu <EXTRA_KEY> <EXTRA_URI_VALUE> ...]\n" + + " [--ecn <EXTRA_KEY> <EXTRA_COMPONENT_NAME_VALUE>]\n" + " [--eia <EXTRA_KEY> <EXTRA_INT_VALUE>[,<EXTRA_INT_VALUE...]]\n" + " [--ela <EXTRA_KEY> <EXTRA_LONG_VALUE>[,<EXTRA_LONG_VALUE...]]\n" + " [--efa <EXTRA_KEY> <EXTRA_FLOAT_VALUE>[,<EXTRA_FLOAT_VALUE...]]\n" + |