diff options
author | Chris Wren <cwren@android.com> | 2013-12-10 15:48:47 -0500 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2014-06-06 22:54:22 -0700 |
commit | cd0377f2d43d25672cafe04bb546db1603af1c89 (patch) | |
tree | cfb6c2fa7cb81aab0d2c5b3edd3c1188402585a3 /util/com | |
parent | d5ce881b5458e4d5258de62ead33be56ffa75ebb (diff) | |
download | android_packages_apps_Trebuchet-cd0377f2d43d25672cafe04bb546db1603af1c89.tar.gz android_packages_apps_Trebuchet-cd0377f2d43d25672cafe04bb546db1603af1c89.tar.bz2 android_packages_apps_Trebuchet-cd0377f2d43d25672cafe04bb546db1603af1c89.zip |
expose the protoutil for launcher as an executable script
Change-Id: Ie990262534d85b118c165589ecee55d64f3a58cc
Diffstat (limited to 'util/com')
-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(); |