From f1d093548ee0d2e3b286b2a392fa439a16d2baa3 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Fri, 27 Feb 2015 15:44:27 -0500 Subject: [PATCH] Make ConfigXmlParser take a Context rather than Activity --- framework/src/org/apache/cordova/ConfigXmlParser.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/src/org/apache/cordova/ConfigXmlParser.java b/framework/src/org/apache/cordova/ConfigXmlParser.java index 1ea30b01..89713ede 100644 --- a/framework/src/org/apache/cordova/ConfigXmlParser.java +++ b/framework/src/org/apache/cordova/ConfigXmlParser.java @@ -25,10 +25,9 @@ import java.util.Locale; import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.apache.cordova.LOG; import org.xmlpull.v1.XmlPullParserException; -import android.app.Activity; +import android.content.Context; import android.content.res.XmlResourceParser; public class ConfigXmlParser { @@ -50,7 +49,7 @@ public class ConfigXmlParser { return launchUrl; } - public void parse(Activity action) { + public void parse(Context action) { // First checking the class namespace for config.xml int id = action.getResources().getIdentifier("config", "xml", action.getClass().getPackage().getName()); if (id == 0) {