]> git.saurik.com Git - android/aapt.git/commitdiff
applications are at level 2
authorJoe Onorato <joeo@android.com>
Sun, 30 Aug 2009 23:54:12 +0000 (16:54 -0700)
committerJoe Onorato <joeo@android.com>
Sun, 30 Aug 2009 23:54:12 +0000 (16:54 -0700)
Resource.cpp

index be058180431088d0a9069d4ed8669332acff1307..4c9853d1d10f1285c8b6a7141936b65fd7058763 100644 (file)
@@ -1710,7 +1710,7 @@ writeProguardForAndroidManifest(ProguardKeepSet* keep, const sp<AaptAssets>& ass
         } else if (depth == 2 && tag == "application") {
             inApplication = true;
         }
         } else if (depth == 2 && tag == "application") {
             inApplication = true;
         }
-        if (depth == 3 && inApplication) {
+        if (inApplication) {
             if (tag == "application" || tag == "activity" || tag == "service" || tag == "receiver"
                     || tag == "provider") {
                 String8 name = getAttribute(tree, "http://schemas.android.com/apk/res/android",
             if (tag == "application" || tag == "activity" || tag == "service" || tag == "receiver"
                     || tag == "provider") {
                 String8 name = getAttribute(tree, "http://schemas.android.com/apk/res/android",