]> git.saurik.com Git - android/aapt.git/commitdiff
am f1871e27: Merge change 26009 into eclair
authorSuchi Amalapurapu <asuchitra@google.com>
Sun, 20 Sep 2009 21:35:24 +0000 (14:35 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Sun, 20 Sep 2009 21:35:24 +0000 (14:35 -0700)
Merge commit 'f1871e273e1bf49d72a7f2ef51a4ef377d8f3112' into eclair-plus-aosp

* commit 'f1871e273e1bf49d72a7f2ef51a4ef377d8f3112':
  Fix issue with printing gles version in aapt dump badging option

Command.cpp

index db4ac974da0875dfe3169ddeb72643de7d15833a..3019bd0f5e9e828dc8c68a961fcd9336044c8bdf 100644 (file)
@@ -712,7 +712,8 @@ int doDump(Bundle* bundle)
                                 LARGE_SCREEN_ATTR, NULL, 1);
                     } else if (tag == "uses-feature") {
                         String8 name = getAttribute(tree, NAME_ATTR, &error);
-                        if (error == "") {
+
+                        if (name != "" && error == "") {
                             int req = getIntegerAttribute(tree,
                                     REQUIRED_ATTR, NULL, 1);
                             if (name == "android.hardware.camera") {
@@ -729,7 +730,7 @@ int doDump(Bundle* bundle)
                         }
                     } else if (tag == "uses-permission") {
                         String8 name = getAttribute(tree, NAME_ATTR, &error);
-                        if (error == "") {
+                        if (name != "" && error == "") {
                             if (name == "android.permission.CAMERA") {
                                 hasCameraPermission = true;
                             }