diff options
author | Chris Wren <cwren@android.com> | 2013-12-10 15:48:47 -0500 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2013-12-10 17:41:18 -0500 |
commit | ba2923a3912f266c8fa1691858db29c2ce597928 (patch) | |
tree | 175c8e564241820e37302c8f3a1bf15ba4a87107 /util/com/android/launcher3 | |
parent | 8e88cb84781907afb7cca80581fea2277264fd2c (diff) | |
download | android_packages_apps_Trebuchet-ba2923a3912f266c8fa1691858db29c2ce597928.tar.gz android_packages_apps_Trebuchet-ba2923a3912f266c8fa1691858db29c2ce597928.tar.bz2 android_packages_apps_Trebuchet-ba2923a3912f266c8fa1691858db29c2ce597928.zip |
expose the protoutil for launcher as an executable script
Change-Id: Ie990262534d85b118c165589ecee55d64f3a58cc
Diffstat (limited to 'util/com/android/launcher3')
-rw-r--r-- | util/com/android/launcher3/DecoderRing.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/com/android/launcher3/DecoderRing.java b/util/com/android/launcher3/DecoderRing.java index 1d9e0defb..bd0275e5f 100644 --- a/util/com/android/launcher3/DecoderRing.java +++ b/util/com/android/launcher3/DecoderRing.java @@ -49,7 +49,7 @@ class DecoderRing { public static void main(String[ ] args) throws Exception { File source = null; - Class type = Key.class; + Class type = null; int skip = 0; for (int i = 0; i < args.length; i++) { @@ -79,6 +79,9 @@ class DecoderRing { } } + if (type == null) { + usage(args); + } // read in the bytes ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); |