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())) { }else if ("uses-sdk".equalsIgnoreCase(pp.getName())) {
try { try {
hideSdkInfo = parseAttr(pp); hideSdkInfo = parseAttr(pp);
if(hideSdkInfo) {
return;
}
} catch (AndrolibException e) {} } catch (AndrolibException e) {}
} }
} else if (hideSdkInfo && type == XmlPullParser.END_TAG && } else if (hideSdkInfo && type == XmlPullParser.END_TAG &&
"uses-sdk".equalsIgnoreCase(pp.getName()) || "uses-sdk".equalsIgnoreCase(pp.getName())) {
hidePackageInfo && type == XmlPullParser.END_TAG && return;
} else if (hidePackageInfo && type == XmlPullParser.END_TAG &&
"manifest".equalsIgnoreCase(pp.getName())) { "manifest".equalsIgnoreCase(pp.getName())) {
super.event(pp); super.event(pp);
return; return;
} }