fix warnings related to <uses-sdk>

This commit is contained in:
Connor Tumbleson 2012-12-23 10:10:36 -06:00
parent 46bfe8b66f
commit 3b0ca62fb0

View File

@ -64,13 +64,16 @@ public class XmlPullStreamDecoder implements ResStreamDecoder {
}else if ("uses-sdk".equalsIgnoreCase(pp.getName())) {
try {
hideSdkInfo = parseAttr(pp);
if(hideSdkInfo) {
return;
}
} catch (AndrolibException e) {}
}
} else if (hideSdkInfo && type == XmlPullParser.END_TAG &&
"uses-sdk".equalsIgnoreCase(pp.getName()) ||
hidePackageInfo && type == XmlPullParser.END_TAG &&
"uses-sdk".equalsIgnoreCase(pp.getName())) {
return;
} else if (hidePackageInfo && type == XmlPullParser.END_TAG &&
"manifest".equalsIgnoreCase(pp.getName())) {
super.event(pp);
return;
}