From 3b0ca62fb09f28231a4019fc503d828564f50537 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Sun, 23 Dec 2012 10:10:36 -0600 Subject: [PATCH] fix warnings related to --- .../brut/androlib/res/decoder/XmlPullStreamDecoder.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/XmlPullStreamDecoder.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/XmlPullStreamDecoder.java index 912721f1..92c5a3bd 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/XmlPullStreamDecoder.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/XmlPullStreamDecoder.java @@ -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; }