applications are at level 2

This commit is contained in:
Joe Onorato
2009-08-30 16:54:12 -07:00
parent 1553c82e08
commit 56d8eeae6f

View File

@@ -1710,7 +1710,7 @@ writeProguardForAndroidManifest(ProguardKeepSet* keep, const sp<AaptAssets>& ass
} 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",